]> git.kernelconcepts.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:46:50 +0000 (08:46 -0800)
commitbfc898a97b610cb1f8bc58f3b8d86d038d87cde3
tree24b559912aae4169b30b0db86726dbdb62625a2f
parentc5ee6af4a9c23a98d401800ddb5be6edf98117d1
libceph: Unlock unprocessed pages in start_read() error path

(cherry picked from commit 8884d53dd63b1d9315b343564fcbe1ede004a99e)

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/addr.c