Skip to content

squid: mds: use lower_bound() to scan waiting_locks - #72941

Open
vshankar wants to merge 1 commit into
ceph:squidfrom
vshankar:wip-80413-squid
Open

vshankar wants to merge 1 commit into
ceph:squidfrom
vshankar:wip-80413-squid

Conversation

@vshankar

Copy link
Copy Markdown
Contributor

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.

Fixes: https://tracker.ceph.com/issues/80398
Signed-off-by: Max Kellermann <[email protected]>
(cherry picked from commit 83eba01)
@vshankar vshankar added this to the squid milestone Oct 21, 2026
@vshankar vshankar added the cephfs Ceph File System label Oct 21, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Oct 21, 2026
@vshankar vshankar modified the milestones: squid, v19.2.8 Oct 21, 2026
@vshankar

Copy link
Copy Markdown
Contributor Author

Reviewed-by: Venky Shankar [email protected]

@batrick

batrick commented Nov 3, 2026

Copy link
Copy Markdown
Member

jenkins test api

@yuriw

yuriw commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri5-testing-20261117.214518-squid.

@batrick

batrick commented Nov 25, 2026

Copy link
Copy Markdown
Member

jenkins test api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System needs-qa 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.

4 participants