]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: track journal replay flush requests to prevent race 35440/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 3 Jun 2020 13:40:32 +0000 (09:40 -0400)
committerNathan Cutler <ncutler@suse.com>
Sat, 6 Jun 2020 16:55:34 +0000 (18:55 +0200)
commitf418c0d233f088d18891660ac9608f917953939d
treefcf7e703ce98b8303cb1f13721d834435e05e49f
parent5c3fc3a3a1f3c8838f4acddc562213118a6349c9
rbd-mirror: track journal replay flush requests to prevent race

If a journal replay flush is in-progress when the ImageReplayer is stopped,
it can race and result in an assertion failure due to two attempted shutdowns
of the same journal replay state machine.

Fixes: https://tracker.ceph.com/issues/45409
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 975a0d253a22bf22d3ec10e738ddae15834d7994)
src/tools/rbd_mirror/image_replayer/journal/Replayer.cc
src/tools/rbd_mirror/image_replayer/journal/Replayer.h