]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: reset update_status_task pointer in timer thread 39867/head
authorMykola Golub <mgolub@suse.com>
Mon, 22 Feb 2021 16:22:54 +0000 (16:22 +0000)
committerMykola Golub <mgolub@suse.com>
Fri, 5 Mar 2021 17:08:37 +0000 (19:08 +0200)
commitb626b56b2d48dc94856332839f972ec65bd3d3f3
treef6d91a3f65fe1cd9b94efd46095f60f66b8e8209
parent8557213156d57f737bc8b8c22dbf726be36373c7
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