]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/rbd_mirror: grab timer lock before calling add_event_after() 45905/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:21:49 +0000 (10:21 +0200)
commit7e3c7e24c73c38a1633b06715a8d47a8917a5efc
tree661a1e5619df0c44a709015021ded026b5e1d15a
parentcdb037ceec8242350302c62a80b1e469fdf4460b
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