]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:51:21 +0000 (08:51 -0800)
commit359c4ea7baf79484cc3561f0040f9d5e367155fe
treebe40ee8e7c951feba5c2e3612205e644acd1afce
parent57d93df8f18dbe66c0e2e1089ed2c120a9b980af
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>
(cherry picked from commit 8884d53dd63b1d9315b343564fcbe1ede004a99e)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/addr.c