]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: reset update_status_task pointer in timer thread
authorMykola Golub <mgolub@suse.com>
Mon, 22 Feb 2021 16:22:54 +0000 (16:22 +0000)
committerJason Dillaman <dillaman@redhat.com>
Wed, 24 Feb 2021 14:05:35 +0000 (09:05 -0500)
commitfc4b89e6269c2fa62cc50bf3bd7670a4ffdfb0b4
tree8db9fee4cc211716d19417aa46efb31fb2423791
parentf4d71ec1dbc248d2d7b1681a42aa2da7ad3fdb7c
rbd-mirror: reset update_status_task pointer in timer thread

To avoid a time window when m_update_status_task is invalid. If
during this time the cancel_update_mirror_image_replay_status is
called, it may cancel some other's ImageReplayer task, if it
happened to add the task with the same address.

Fixes: https://tracker.ceph.com/issues/49418
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit 3a289d43f6ab010bcadb80888fb73763f4f55ed0)
src/tools/rbd_mirror/ImageReplayer.cc