]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/rbd_mirror: grab timer lock before calling add_event_after() 45177/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 13 Apr 2022 13:24:04 +0000 (15:24 +0200)
committerPonnuvel Palaniyappan <pponnuvel@gmail.com>
Wed, 11 May 2022 06:18:12 +0000 (07:18 +0100)
commitc62f9f9779813aad33ccb78cf9ca9969681f7939
tree3513a722626af54bafea857d24c34d58efe6f2aa
parent484d3534f4e278092ceca45c32ca3ff31b30bd24
test/rbd_mirror: grab timer lock before calling add_event_after()

add_event_after() expects an externally provided mutex to be held
for the call.  This was missed in commit 8965a0f2a6f7 ("rbd-mirror:
synchronize with in-flight stop in ImageReplayer::stop()").

Fixes: https://tracker.ceph.com/issues/55317
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 60e16106837e0d23366709f70f39c4f1ae7a2a45)
src/test/rbd_mirror/test_mock_ImageReplayer.cc