]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ceph: fix error handling of start_read()
authorYan, Zheng <zyan@redhat.com>
Wed, 24 Aug 2016 03:33:46 +0000 (11:33 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 3 Oct 2016 14:13:49 +0000 (16:13 +0200)
commit1afe478569ba7414dde8a874dda9c1ea621c0c63
tree1a4b24ecb88e64c8cb7d4870afd2a126655cdf6c
parent0dcc685e7dd7190dcaa5435e9c14150f1d405b7b
ceph: fix error handling of start_read()

If start_page() fails to add a page to page cache or fails to send
OSD request. It should cal put_page() (instead of free_page()) for
relevant pages.

Besides, start_page() need to cancel fscache readpage if it fails
to send OSD request.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
Reported-by: Zhi Zhang <zhang.david2011@gmail.com>
fs/ceph/addr.c