]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/rbd_mirror: grab timer lock before calling add_event_after() 45184/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 13 Apr 2022 13:24:04 +0000 (15:24 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 14 Apr 2022 08:27:30 +0000 (10:27 +0200)
commit40b7d203c716296a431762f5961ca4735af25351
treeef618a2557afd4b6d0cc7a5793fed53aa54e9b05
parent27ea07d6ba56c5fbb95928229298d3b61c3bc244
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