]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: complete all pending aio ops prior to closing image 3405/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 15 Dec 2014 15:53:53 +0000 (10:53 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 19 Jan 2015 16:25:16 +0000 (11:25 -0500)
commit081f49b47ca8d7583211f546ab5699b14f773bfc
tree844beea558a6a5169f9795dc17b719857972a3e2
parent4c8a5cedcb7942e1e01ab4cedfbf03e4c56cc1e4
librbd: complete all pending aio ops prior to closing image

It was possible for an image to be closed while aio operations
were still outstanding.  Now all aio operations are tracked and
completed before the image is closed.

Fixes: #10299
Backport: giant, firefly, dumpling
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/AioCompletion.cc
src/librbd/AioCompletion.h
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/internal.cc
src/test/librbd/test_librbd.cc