]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: ensure all asio completions are complete at ImageCtx destruction
authorJason Dillaman <dillaman@redhat.com>
Fri, 10 Jul 2020 15:24:08 +0000 (11:24 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 16 Jul 2020 20:01:28 +0000 (16:01 -0400)
commitfed9f94300609a41d98bc63cd783df74ed115958
treea5f5d69bd1145e9847fa077fcf8f634ea458f423
parent5a4c61a7818d0a9c2b8536155a2ce1ef1fb34ce5
librbd: ensure all asio completions are complete at ImageCtx destruction

With multiple threads of execution possible, we need to ensure that
all completions have fired prior to the destruction of the AsioEngine.
We also need to ensure that the AsioEngine is destoyed outside the
context of its owned stands.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageCtx.cc
src/librbd/asio/ContextWQ.cc