Bug 2182613

Summary: client: fix CEPH_CAP_FILE_WR caps reference leakage in _write()
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Xiubo Li <xiubli>
Component: CephFSAssignee: Xiubo Li <xiubli>
Status: CLOSED ERRATA QA Contact: Hemanth Kumar <hyelloji>
Severity: medium Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 6.0CC: akraj, ceph-eng-bugs, cephqe-warriors, tserlin, vshankar
Target Milestone: ---Keywords: CodeChange
Target Release: 6.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-17.2.6-11.el9cp Doc Type: Bug Fix
Doc Text:
.MDS no longer gets indefinitely stuck while waiting for the cap revocation acknowledgement Previously, if `__setattrx()` failed, the `_write()` would retain the `CEPH_CAP_FILE_WR` caps reference, the MDS would be indefinitely stuck waiting for the cap revocation acknowledgment. It would also cause other clients' requests to be stuck indefinitely. With this fix, the `CEPH_CAP_FILE_WR` caps reference is released if the `__setattrx()` fails and MDS' caps revoke request is not stuck.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-15 09:17:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2192813    

Description Xiubo Li 2023-03-29 04:21:33 UTC
If the __setattrx() fails it will leave the CEPH_CAP_FILE_WR caps
    reference kept.

The tracker is https://tracker.ceph.com/issues/58717.

Comment 1 Greg Farnum 2023-04-10 15:21:43 UTC
*** Bug 2182616 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2023-06-15 09:17:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Ceph Storage 6.1 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:3623