Project

General

Profile

Actions

Bug #78047

closed
YS YS

rbd-mirror: take MirrorStatusUpdater lock by value in queue_update_task

Bug #78047: rbd-mirror: take MirrorStatusUpdater lock by value in queue_update_task

Added by Yuechi Sun 5 months ago. Updated 3 months ago.

Status:
Backporting
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
squid,tentacle,umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-1059-g10d04194d5
Released In:
Upkeep Timestamp:
2026-08-27T18:41:15+00:00

Description

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.


Related issues 3 (1 open — 2 closed)

Copied to rbd - Backport #78273: tentacle: rbd-mirror: take MirrorStatusUpdater lock by value in queue_update_taskNewYuechi Sun

Actions
Copied to rbd - Backport #78274: umbrella: rbd-mirror: take MirrorStatusUpdater lock by value in queue_update_taskResolvedIlya Dryomov

Actions
Copied to rbd - Backport #78275: squid: rbd-mirror: take MirrorStatusUpdater lock by value in queue_update_taskResolvedIlya Dryomov

Actions

YS Updated by Yuechi Sun 5 months ago Actions #1

  • Pull request ID set to 70033

ID Updated by Ilya Dryomov 5 months ago Actions #2

  • Status changed from New to Fix Under Review
  • Assignee set to Yuechi Sun
  • Backport set to squid,tentacle,umbrella

UB Updated by Upkeep Bot 5 months ago Actions #3

  • Status changed from Fix Under Review to Pending Backport
  • Merge Commit set to 10d04194d54a2bc256404a1f5d37241c1ce45ad6
  • Fixed In set to v21.3.0-1059-g10d04194d5
  • Upkeep Timestamp set to 2026-07-15T22:23:04+00:00

UB Updated by Upkeep Bot 5 months ago Actions #4

  • Copied to Backport #78273: tentacle: rbd-mirror: take MirrorStatusUpdater lock by value in queue_update_task added

UB Updated by Upkeep Bot 5 months ago Actions #5

  • Copied to Backport #78274: umbrella: rbd-mirror: take MirrorStatusUpdater lock by value in queue_update_task added

UB Updated by Upkeep Bot 5 months ago Actions #6

  • Copied to Backport #78275: squid: rbd-mirror: take MirrorStatusUpdater lock by value in queue_update_task added

UB Updated by Upkeep Bot 5 months ago Actions #7

  • Tags (freeform) set to backport_processed

ID Updated by Ilya Dryomov 5 months ago Actions #8

  • Project changed from Ceph to rbd

UB Updated by Upkeep Bot 3 months ago Actions #9

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-07-15T22:23:04+00:00 to 2026-08-27T18:41:15+00:00
Actions

Also available in: PDF Atom