]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libceph: Unlock unprocessed pages in start_read() error path
authorDavid Zafman <david.zafman@inktank.com>
Tue, 4 Dec 2012 03:14:05 +0000 (19:14 -0800)
committerAlex Elder <elder@inktank.com>
Thu, 13 Dec 2012 14:13:09 +0000 (08:13 -0600)
commit8884d53dd63b1d9315b343564fcbe1ede004a99e
tree9826a8ce6cac8b7c1b0fe27ca50a81572d69c59c
parent0e5e1774a92e6fe9c511585de8f078b4c4c68dbb
libceph: Unlock unprocessed pages in start_read() error path

Function start_read() can get an error before processing all pages.
It must not only release the remaining pages, but unlock them too.

This fixes http://tracker.newdream.net/issues/3370

Signed-off-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
fs/ceph/addr.c