]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: reset update_status_task pointer in timer thread 39625/head
authorMykola Golub <mgolub@suse.com>
Mon, 22 Feb 2021 16:22:54 +0000 (16:22 +0000)
committerMykola Golub <mgolub@suse.com>
Mon, 22 Feb 2021 16:22:54 +0000 (16:22 +0000)
commit3a289d43f6ab010bcadb80888fb73763f4f55ed0
treeed5b5e617ff29a501ce87871954d32350e419375
parent44fbd042960ae4ab82c5599e6059dc26532b9f97
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>
src/tools/rbd_mirror/ImageReplayer.cc