]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: fixed deadlock while attempting to flush AIO requests 6508/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 9 Nov 2015 16:22:24 +0000 (11:22 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 9 Nov 2015 16:22:24 +0000 (11:22 -0500)
commitbfeb90e5fe24347648c72345881fd3d932243c98
tree4da10cc4a7f062a604006b6a1b329fcbee640073
parenta9729d9553e7fb925509cad8d388cf52a9fede9c
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>
src/librbd/ImageCtx.cc