Skip to content

squid: mds: attribute flock state from cap messages to the sending client - #72933

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

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

Conversation

@vshankar

Copy link
Copy Markdown
Contributor

_do_cap_update() inserted the locks from `MClientCaps::flockbl` into
held_locks with the `client` field as it arrived on the wire, so a
client could record locks against any other client id. Such a lock is
not reachable by remove_client_cap() -> remove_all_from() for the
sender's session, so nothing ever releases it: it sits in `held_locks`
blocking every other owner of that file until the MDS is restarted.

Override it with the authenticated sender, as
Server::recover_filelocks() already does.

Fixes: https://tracker.ceph.com/issues/80005
Signed-off-by: Max Kellermann <[email protected]>
(cherry picked from commit 7f60dd0)
@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]

@yuriw

yuriw commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

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

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.

3 participants