]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: ensure in-flight read-ahead + copy-on-read ops are finalized
authorJason Dillaman <dillaman@redhat.com>
Fri, 8 May 2020 15:36:32 +0000 (11:36 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 14 May 2020 15:56:45 +0000 (11:56 -0400)
commit724262987014723576238f10a6ff5ec31af18eba
tree3bc680ee92999c9fe5866331c1f99c98bf9ab971
parent106a6490d807058c092ce825cbf134dbe321d178
librbd: ensure in-flight read-ahead + copy-on-read ops are finalized

Now that the image dispatcher isn't flushing AsyncOperations with each
flush request, we need to ensure that we flush all background ops prior
to fully closing the image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/io/ImageDispatcher.cc
src/librbd/io/ImageDispatcher.h
src/test/librbd/io/test_mock_CopyupRequest.cc
src/test/librbd/mock/MockImageCtx.cc
src/test/librbd/mock/MockImageCtx.h