Project

General

Profile

Actions

Bug #80398

closed
VS

mds: use lower_bound() to scan waiting_locks

Bug #80398: mds: use lower_bound() to scan waiting_locks

Added by Venky Shankar 3 months ago. Updated 3 months ago.

Status:
Backporting
Priority:
Normal
Assignee:
-
Category:
Correctness/Safety
Target version:
Due date:
% Done:

0%

Source:
Community (dev)
Backport:
umbrella,tentacle,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-3110-g50c281c5f6
Released In:
Upkeep Timestamp:
2026-09-09T12:26:19+00:00

Description

is_waiting() and remove_waiting() located the start of their scan with std::multimap::find(), which may return any element with the requested key, not the first. Entries sorting before the returned one are then never examined, so a waiting lock can be reported absent or left behind.

This currently works only because libstdc++'s find() just happens to return the first matching element, but the standard allows returning any matching element.


Related issues 3 (3 open — 0 closed)

Copied to CephFS - Backport #80411: umbrella: mds: use lower_bound() to scan waiting_locksFix Under ReviewVenky Shankar

Actions
Copied to CephFS - Backport #80412: tentacle: mds: use lower_bound() to scan waiting_locksFix Under ReviewVenky Shankar

Actions
Copied to CephFS - Backport #80413: squid: mds: use lower_bound() to scan waiting_locksFix Under ReviewVenky Shankar

Actions

VS Updated by Venky Shankar 3 months ago Actions #1

  • Status changed from New to Fix Under Review
  • Pull request ID set to 71385

UB Updated by Upkeep Bot 3 months ago Actions #2

  • Status changed from Fix Under Review to Pending Backport
  • Merge Commit set to 50c281c5f6088b1a9753143650183b630934fb4b
  • Fixed In set to v21.3.0-3110-g50c281c5f6
  • Upkeep Timestamp set to 2026-09-09T09:21:48+00:00

UB Updated by Upkeep Bot 3 months ago Actions #3

  • Copied to Backport #80411: umbrella: mds: use lower_bound() to scan waiting_locks added

UB Updated by Upkeep Bot 3 months ago Actions #4

  • Copied to Backport #80412: tentacle: mds: use lower_bound() to scan waiting_locks added

UB Updated by Upkeep Bot 3 months ago Actions #5

  • Copied to Backport #80413: squid: mds: use lower_bound() to scan waiting_locks added

UB Updated by Upkeep Bot 3 months ago Actions #6

  • Status changed from Pending Backport to Backporting
  • Upkeep Timestamp changed from 2026-09-09T09:21:48+00:00 to 2026-09-09T12:26:19+00:00
Actions

Also available in: PDF Atom