Actions
Bug #73298
closed
VS
VS
client: fsync does not finish for an write delegated inode
Bug #73298:
client: fsync does not finish for an write delegated inode
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Correctness/Safety
Target version:
Due date:
% Done:
0%
Source:
other
Backport:
tentacle,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client
Labels (FS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v20.3.0-3478-gaea1dd81cd
Released In:
v21.2.0~1906
Upkeep Timestamp:
2026-10-28T01:07:24+00:00
Description
Cephfs client holds a ref on Fb caps when handing out a write delegation0. As fsync from Ganesha client holding write delegation will block indefinitely1 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
int Client::_fsync(Inode *in, bool syncdataonly)
{
...
...
...
// FIXME: this can starve
while (in->cap_refs[CEPH_CAP_FILE_BUFFER] > 0) {
ldout(cct, 10) << "ino " << in->ino << " has " << in->cap_refs[CEPH_CAP_FILE_BUFFER]
<< " uncommitted, waiting" << dendl;
wait_on_context_list(in->waitfor_commit); <<< here
}
Since this is defined NFSv4 RFC, we would need to fix this in the cephfs client library.
VS Updated by Venky Shankar about 1 year ago
- Status changed from New to Fix Under Review
- Pull request ID set to 65713
VS Updated by Venky Shankar about 1 year ago
- Related to Bug #73387: client: async fsync does not finish for an write delegated inode added
VS Updated by Venky Shankar about 1 year ago
- Status changed from Fix Under Review to Pending Backport
UB Updated by Upkeep Bot about 1 year ago
- Merge Commit set to aea1dd81cd6e048a5f535fb0f2b9acc2d0c794b1
- Fixed In set to v20.3.0-3478-gaea1dd81cd
- Upkeep Timestamp set to 2025-10-09T13:16:00+00:00
UB Updated by Upkeep Bot about 1 year ago
- Copied to Backport #73464: tentacle: client: fsync does not finish for an write delegated inode added
UB Updated by Upkeep Bot about 1 year ago
- Copied to Backport #73465: squid: client: fsync does not finish for an write delegated inode added
UB Updated by Upkeep Bot about 1 year ago
- Tags (freeform) set to backport_processed
VS Updated by Venky Shankar about 1 year ago
- Related to Bug #73555: client: fsync on an write delegated inode indefinitely waits on `waitfor_commit` added
VS Updated by Venky Shankar about 1 year ago
- Related to Bug #73624: client: signal Fb cap ref waiters for write delegated inode added
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Backporting
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2025-10-09T13:16:00+00:00 to 2026-08-27T18:13:13+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~1906
- Upkeep Timestamp changed from 2026-08-27T18:13:13+00:00 to 2026-10-24T01:08:50+00:00
UB Updated by Upkeep Bot about 1 month ago
- Status changed from Backporting to Resolved
- Upkeep Timestamp changed from 2026-10-24T01:08:50+00:00 to 2026-10-28T01:07:24+00:00
Actions