]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: fix an incorrect assertion condition
authorAlex Elder <elder@inktank.com>
Mon, 6 May 2013 22:40:32 +0000 (17:40 -0500)
committerAlex Elder <elder@inktank.com>
Thu, 9 May 2013 01:16:10 +0000 (20:16 -0500)
commit1f6b6a413f090e61f767378778a28062760a093f
treeda91f0eb4b61bc7e570d7422157927253a71c017
parentd34b233aa4a74014336bc66ec7498aebcd5e10f0
rbd: fix an incorrect assertion condition

In rbd_img_obj_parent_read_full_callback() there is an assertion
intended to verify the size of the image request for a full parent
read was the size of the original request's target object.  But
assertion was looking at the parent image order rather than the
original one, and these values can differ.

Fix that.

This resolves:
    http://tracker.ceph.com/issues/4938

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c