Skip to content

umbrella: rbd-mirror: take MirrorStatusUpdater lock by value in queue_update_task - #70591

Merged
batrick merged 1 commit into
ceph:umbrellafrom
idryomov:wip-78047-umbrella
Jul 30, 2026
Merged

batrick merged 1 commit into
ceph:umbrellafrom
idryomov:wip-78047-umbrella

Conversation

@idryomov

Copy link
Copy Markdown
Contributor

queue_update_task() took the lock by rvalue reference, so its early
returns never released it. In handle_update_task() that left m_lock
held across the on_finish->complete() calls; during shutdown a
completion can re-enter try_remove_mirror_image_status() and re-lock
m_lock, deadlocking.

Take the unique_lock by value so it unlocks on every return path.

Fixes: https://tracker.ceph.com/issues/78047
Signed-off-by: Sun Yuechi <[email protected]>
(cherry picked from commit b450195)
@idryomov idryomov added this to the v21.1.1 milestone Jul 27, 2026
@idryomov
idryomov requested a review from a team as a code owner July 27, 2026 18:07
@github-actions github-actions Bot added rbd releng-audit-pass Release engineering: passed backport verification audit. labels Jul 27, 2026
@yuriw

yuriw commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri5-testing-20260728.193509-umbrella.

@batrick
batrick merged commit 9af6dff into ceph:umbrella Jul 30, 2026
9 of 10 checks passed
@idryomov
idryomov deleted the wip-78047-umbrella branch July 30, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-qa rbd releng-audit-pass Release engineering: passed backport verification audit. wip-yuri5-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants