]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
ceph: update readpages osd request according to size of pages
authorYan, Zheng <zyan@redhat.com>
Thu, 19 Jan 2017 03:21:29 +0000 (11:21 +0800)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 13 Mar 2017 21:20:54 +0000 (15:20 -0600)
commitb2fe3f3e3d70e2899b1fab99666809558c9465ac
tree3a39f6c3fed81464258f612d86bcdb1a3df61bf3
parent54b867789755bb8316245dceea86828796ebdd3a
ceph: update readpages osd request according to size of pages

BugLink: http://bugs.launchpad.net/bugs/1672544
commit d641df819db8b80198fd85d9de91137e8a823b07 upstream.

add_to_page_cache_lru() can fails, so the actual pages to read
can be smaller than the initial size of osd request. We need to
update osd request size in that case.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/ceph/addr.c
net/ceph/osd_client.c