]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-mirror: track in-flight start/stop/restart in instance replayer
authorJason Dillaman <dillaman@redhat.com>
Fri, 17 Apr 2020 15:17:05 +0000 (11:17 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 17 Apr 2020 15:17:05 +0000 (11:17 -0400)
commit31140a940ea1909c4b5d68ef4593cb582a527354
tree4e7430540f82c13ddb64bb87ce714822a1d3255d
parent64f8d9c30c53077f48107e83ba836897aa99e609
rbd-mirror: track in-flight start/stop/restart in instance replayer

The shut down waits for in-flight ops to complete but the
start/stop/restart operations were previously not tracked. This
could cause a potential race and crash between an image replayer
operation and the instance replayer shutting down.

Fixes: https://tracker.ceph.com/issues/45072
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/rbd_mirror/test_mock_InstanceReplayer.cc
src/tools/rbd_mirror/InstanceReplayer.cc