Repository navigation
tentacle: client: adjust Fb cap ref count check during synchronous fsync() - #65913
Merged
Merged
Conversation
joscollin
force-pushed
the
wip-73464-tentacle
branch
from
October 13, 2025 11:39
5cf0109 to
13ef218
Compare
Member
Author
|
jenkins test make check |
Member
Author
|
This PR is under test in https://tracker.ceph.com/issues/73567. |
Member
|
This PR is under test in https://tracker.ceph.com/issues/74910. |
batrick
approved these changes
Feb 27, 2026
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)
Fixes: http://tracker.ceph.com/issues/73624 Signed-off-by: Venky Shankar <[email protected]> Tested-by: Suhas Athani <[email protected]> (cherry picked from commit ee86479)
joscollin
force-pushed
the
wip-73464-tentacle
branch
from
March 5, 2026 10:15
13ef218 to
325baf4
Compare
Member
Author
|
This PR is under test in https://tracker.ceph.com/issues/75351. |
Member
Author
|
jenkins test make check |
vshankar
approved these changes
Mar 26, 2026
Member
Author
|
@vshankar Please merge this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport tracker: https://tracker.ceph.com/issues/73464
backport of #65713
parent tracker: https://tracker.ceph.com/issues/73298
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh