commit | 1afe478569ba7414dde8a874dda9c1ea621c0c63 | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zyan@redhat.com> | Wed Aug 24 11:33:46 2016 +0800 |
committer | Ilya Dryomov <idryomov@gmail.com> | Mon Oct 03 16:13:49 2016 +0200 |
tree | 1a4b24ecb88e64c8cb7d4870afd2a126655cdf6c | |
parent | 0dcc685e7dd7190dcaa5435e9c14150f1d405b7b [diff] |
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>