Project

General

Profile

Actions

Bug #77894

closed
YS ID

librbd/cache/pwl: deadlock in AbstractWriteLog destructor: ThreadPool::stop() called while holding m_lock

Bug #77894: librbd/cache/pwl: deadlock in AbstractWriteLog destructor: ThreadPool::stop() called while holding m_lock

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-2591-g89d8d47ef2
Released In:
Upkeep Timestamp:
2026-08-27T18:46:43+00:00

Description

The destructor called ThreadPool::stop() while holding m_lock. stop()
joins the tp_pwl workers, but a worker draining an in-flight op may
itself need m_lock (e.g. dispatch_deferred_writes), so both sides wait
forever, intermittently hanging TestMockCacheSSDWriteLog.*.


Related issues 3 (1 open — 2 closed)

Copied to rbd - Backport #79762: umbrella: librbd/cache/pwl: deadlock in AbstractWriteLog destructor: ThreadPool::stop() called while holding m_lockResolvedIlya Dryomov

Actions
Copied to rbd - Backport #79763: squid: librbd/cache/pwl: deadlock in AbstractWriteLog destructor: ThreadPool::stop() called while holding m_lockResolvedIlya Dryomov

Actions
Copied to rbd - Backport #79764: tentacle: librbd/cache/pwl: deadlock in AbstractWriteLog destructor: ThreadPool::stop() called while holding m_lockNewIlya Dryomov

Actions

ID Updated by Ilya Dryomov 4 months ago Actions #1

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

ID Updated by Ilya Dryomov 4 months ago Actions #2

  • Assignee changed from Yuechi Sun to Ilya Dryomov
  • Pull request ID changed from 69898 to 71083

ID Updated by Ilya Dryomov 3 months ago Actions #3

  • Project changed from Ceph to rbd

UB Updated by Upkeep Bot 3 months ago Actions #4

  • Status changed from Fix Under Review to Pending Backport
  • Merge Commit set to 89d8d47ef2643e17ae579df46e14f9ee0ae8f54e
  • Fixed In set to v21.3.0-2591-g89d8d47ef2
  • Upkeep Timestamp set to 2026-08-24T10:16:52+00:00

UB Updated by Upkeep Bot 3 months ago Actions #5

  • Copied to Backport #79762: umbrella: librbd/cache/pwl: deadlock in AbstractWriteLog destructor: ThreadPool::stop() called while holding m_lock added

UB Updated by Upkeep Bot 3 months ago Actions #6

  • Copied to Backport #79763: squid: librbd/cache/pwl: deadlock in AbstractWriteLog destructor: ThreadPool::stop() called while holding m_lock added

UB Updated by Upkeep Bot 3 months ago Actions #7

  • Copied to Backport #79764: tentacle: librbd/cache/pwl: deadlock in AbstractWriteLog destructor: ThreadPool::stop() called while holding m_lock added

UB Updated by Upkeep Bot 3 months ago Actions #8

  • Tags (freeform) set to backport_processed

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-08-24T10:16:52+00:00 to 2026-08-27T18:46:43+00:00
Actions

Also available in: PDF Atom