]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: restore zeroing past the overlap when reading from parent
authorIlya Dryomov <idryomov@gmail.com>
Tue, 27 Aug 2019 14:45:10 +0000 (16:45 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 28 Aug 2019 10:34:11 +0000 (12:34 +0200)
commit97f6cf84ef164f04385a5e630a872a3f4cfefe69
tree96f88099d0e3baab4bf0eaa93c4bdb5a27425876
parent59bf61366b3b839788ad22f05f36f6ef06117afc
rbd: restore zeroing past the overlap when reading from parent

The parent image is read only up to the overlap point, the rest of
the buffer should be zeroed.  This snuck in because as it turns out
the overlap test case has not been triggering this code path for
a while now.

Fixes: dd3db959dcaa ("rbd: replace obj_req->tried_parent with obj_req->read_state")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
drivers/block/rbd.c