]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: delay completion of AioRequest::read_from_parent 3864/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 3 Mar 2015 02:14:21 +0000 (21:14 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 3 Mar 2015 16:33:03 +0000 (11:33 -0500)
commit137800a3c9697cbab768ce0b84386e8a71631548
treec099bb881f24bb9b9f96a4a66445ba6396237d3f
parent7d2fe5b8f3c1959a554da2efb18b05987c2d8c4c
librbd: delay completion of AioRequest::read_from_parent

If the object map is enabled, it's possible for a read request to
instantly complete due to the skipped librados operations.  Now
AioRequest will block the completion of read_from_parent requests
to prevent the possibility of the parent image being closed while
the read_from_parent method invocation is in-progress.

Fixes: #10968
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/AioRequest.cc
src/librbd/AioRequest.h