aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/rbd.c
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2018-05-03 16:10:09 +0200
committerIlya Dryomov <idryomov@gmail.com>2018-05-10 10:15:00 +0200
commit3a15b38fd2efc1d648cb33186bf71e9138c93491 (patch)
tree0b73b8c86665270a3c56d6de453d6cab0b5ab1e1 /drivers/block/rbd.c
parentLinux 4.17-rc4 (diff)
downloadlinux-dev-3a15b38fd2efc1d648cb33186bf71e9138c93491.tar.xz
linux-dev-3a15b38fd2efc1d648cb33186bf71e9138c93491.zip
ceph: fix rsize/wsize capping in ceph_direct_read_write()
rsize/wsize cap should be applied before ceph_osdc_new_request() is called. Otherwise, if the size is limited by the cap instead of the stripe unit, ceph_osdc_new_request() would setup an extent op that is bigger than what dio_get_pages_alloc() would pin and add to the page vector, triggering asserts in the messenger. Cc: stable@vger.kernel.org Fixes: 95cca2b44e54 ("ceph: limit osd write size") Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Diffstat (limited to 'drivers/block/rbd.c')
0 files changed, 0 insertions, 0 deletions