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)
commitd435c9a7b85be1e820668d2f3718c2d9f24d5548
tree96f88099d0e3baab4bf0eaa93c4bdb5a27425876
parente8c99200b4d117c340c392ebd5e62d85dfeed027
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: a9b67e69949d ("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