Repository navigation
client: adjust Fb cap ref count check during synchronous fsync() - #65713
Conversation
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]>
Signed-off-by: Venky Shankar <[email protected]>
|
This one is pretty urgent. |
chrisphoffman
left a comment
There was a problem hiding this comment.
lgtm.
Can you create a tracker to address async case?
Sure, I can. But now I think the same fix should also work for the asynchronous case. I mean, no matter how many concurrent async fsync's have been triggered on an write delegated inode, the Fb cap ref count condition introduced here should still hold true. |
|
jenkins test make check |
|
@chrisphoffman - I will link a tracker for the asynchronous case. Let's think about that a bit more as there is no need to rush it in with this change. Do you agree? |
Yeah that's fine. |
|
https://tracker.ceph.com/issues/73298
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.