Skip to content

squid: client: adjust Fb cap ref count check during synchronous fsync() - #66127

Merged
batrick merged 2 commits into
ceph:squidfrom
joscollin:wip-73465-squid
Oct 26, 2026
Merged

batrick merged 2 commits into
ceph:squidfrom
joscollin:wip-73465-squid

Conversation

@joscollin

Copy link
Copy Markdown
Member

@joscollin joscollin added this to the squid milestone Nov 5, 2025
@joscollin joscollin added the cephfs Ceph File System label Nov 5, 2025
@github-actions github-actions Bot added the tests label Nov 5, 2025
@joscollin

Copy link
Copy Markdown
Member Author

jenkins test make check

@joscollin

Copy link
Copy Markdown
Member Author

jenkins test docs

2 similar comments
@joscollin

Copy link
Copy Markdown
Member Author

jenkins test docs

@joscollin

Copy link
Copy Markdown
Member Author

jenkins test docs

@joscollin

Copy link
Copy Markdown
Member Author

jenkins test make check

@joscollin

Copy link
Copy Markdown
Member Author

@batrick batrick modified the milestones: squid, v19.2.4 Mar 18, 2026
@batrick batrick modified the milestones: v19.2.4, v19.2.5 Apr 22, 2026
@batrick batrick added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-fail Release engineering: failed backport verification audit. labels May 14, 2026
@batrick batrick modified the milestones: v19.2.5, v19.2.6 Jul 21, 2026
@batrick batrick added the releng-audit-queue Release engineering: queued for backport verification audit. label Jul 21, 2026
@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-queue Release engineering: queued for backport verification audit. releng-audit-pass Release engineering: passed backport verification audit. labels Jul 21, 2026
@batrick batrick modified the milestones: v19.2.7, squid Aug 26, 2026
@yuriw

yuriw commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri7-testing-20261007.155121-squid.

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cephfs client holds a ref on Fb caps when handing out a write delegation[0].
As fsync from (Ganesha) client holding write delegation will block indefinitely[1]
waiting for cap ref for Fb to drop to 0, which will never happen until the
delegation is returned/recalled.

[0]: https://github.com/ceph/ceph/blob/main/src/client/Delegation.cc#L71
[1]: https://github.com/ceph/ceph/blob/main/src/client/Client.cc#L12438

If an inode has been write delegated, adjust for cap reference count
check in fsync().

Note: This only workls for synchronous fsync() since `client_lock` is
held for the entire duration of the call (at least till the patch leading
upto the reference count check). Asynchronous fsync() needs to be fixed
separately (as that can drop `client_lock`).

Fixes: https://tracker.ceph.com/issues/73298
Signed-off-by: Venky Shankar <[email protected]>
(cherry picked from commit d7eca69)
Signed-off-by: Venky Shankar <[email protected]>
(cherry picked from commit be0c40c)
@batrick batrick modified the milestones: squid, v19.2.8 Oct 26, 2026
@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-pass Release engineering: passed backport verification audit. labels Oct 26, 2026
@batrick
batrick merged commit f3ce3b8 into ceph:squid Oct 26, 2026
15 checks passed
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. tests wip-yuri7-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants