Actions
Bug #80398
closed
VS
mds: use lower_bound() to scan waiting_locks
Bug #80398:
mds: use lower_bound() to scan waiting_locks
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):
Merge Commit:
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.
VS Updated by Venky Shankar 3 months ago
- Status changed from New to Fix Under Review
- Pull request ID set to 71385
UB Updated by Upkeep Bot 3 months ago
- 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
- Copied to Backport #80411: umbrella: mds: use lower_bound() to scan waiting_locks added
UB Updated by Upkeep Bot 3 months ago
- Copied to Backport #80412: tentacle: mds: use lower_bound() to scan waiting_locks added
UB Updated by Upkeep Bot 3 months ago
- Copied to Backport #80413: squid: mds: use lower_bound() to scan waiting_locks added
UB Updated by Upkeep Bot 3 months ago
- 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