]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: fixed deadlock while attempting to flush AIO requests 6632/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 9 Nov 2015 16:22:24 +0000 (11:22 -0500)
committerAbhishek Varshney <abhishek.varshney@flipkart.com>
Wed, 18 Nov 2015 08:06:32 +0000 (13:36 +0530)
commit83c38802a2be16faf7be4ac5ac3c589de8b2dbb0
tree0405b3d6d218037af1f9d77dd28531b7188e52e0
parent0b21b3f0dc2a9676f3fb2b19141ce75324f53c72
librbd: fixed deadlock while attempting to flush AIO requests

In-flight AIO requests might force a flush if a snapshot was created
out-of-band.  The flush completion was previously invoked asynchronously,
potentially via the same thread worker handling the AIO request. This
resulted in the flush operation deadlocking since it can't complete.

Fixes: #13726
Backport: infernalis, hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit bfeb90e5fe24347648c72345881fd3d932243c98)
src/librbd/ImageCtx.cc