Skip to content

tentacle: client: adjust Fb cap ref count check during synchronous fsync() - #65913

Merged
batrick merged 3 commits into
ceph:tentaclefrom
joscollin:wip-73464-tentacle
Apr 6, 2026
Merged

batrick merged 3 commits into
ceph:tentaclefrom
joscollin:wip-73464-tentacle

Conversation

@joscollin

Copy link
Copy Markdown
Member

@joscollin joscollin added this to the tentacle milestone Oct 13, 2025
@joscollin joscollin added the cephfs Ceph File System label Oct 13, 2025
@github-actions github-actions Bot added the tests label Oct 13, 2025
@joscollin

Copy link
Copy Markdown
Member Author

jenkins test make check

@joscollin

Copy link
Copy Markdown
Member Author

@batrick

batrick commented Feb 12, 2026

Copy link
Copy Markdown
Member

vshankar added 3 commits March 5, 2026 15:45
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)
@joscollin

Copy link
Copy Markdown
Member Author

@joscollin

Copy link
Copy Markdown
Member Author

jenkins test make check

@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.

@joscollin

Copy link
Copy Markdown
Member Author

@vshankar Please merge this.

@batrick
batrick merged commit 798c2f3 into ceph:tentacle Apr 6, 2026
6 checks passed
@joscollin
joscollin deleted the wip-73464-tentacle branch April 7, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants