]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: complete all pending aio ops prior to closing image 3181/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 15 Dec 2014 15:53:53 +0000 (10:53 -0500)
committerJason Dillaman <dillaman@redhat.com>
Tue, 16 Dec 2014 04:25:04 +0000 (23:25 -0500)
commit37a99694b1b4637b3b41b312809660d5139e8a23
treed2220cbb946b2884ea9d8512a29546850826d881
parenta58385a84877cadecb2933b56fcd1d198bd6ab0a
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