Bug 2196403

Summary: mds: wait for unlink operation to finish
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Xiubo Li <xiubli>
Component: CephFSAssignee: Xiubo Li <xiubli>
Status: CLOSED ERRATA QA Contact: Amarnath <amk>
Severity: medium Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 5.3CC: akraj, ceph-eng-bugs, cephqe-warriors, gfarnum, hyelloji, tserlin, vshankar
Target Milestone: ---   
Target Release: 5.3z4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-16.2.10-179.el8cp Doc Type: Bug Fix
Doc Text:
.Link request no longer fail with `-EXDEV` Previously, if an inode had more than one link and one of its dentries was unlinked, it would be moved to the stray directory. Due to this, if a link request came before the _link merge_/_migrate_ completed, it would fail with `-EXDEV` error. With this fix, waiting for the previous _link merge_/_migrate_ to finish or purging operations to finish link requests allows link operations to succeed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-19 16:19:10 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: 2210690    

Description Xiubo Li 2023-05-09 01:59:00 UTC
If one inode has more than one link and after one of its dentries
being unlinked it will be moved to stray directory. Before the
linkmerge/migrate finises if a link request comes it will fail
with -EXDEV.

While in non-multiple link case it's also possible that the clients
could pass one invalidate ino, which is still under unlinking.

Comment 1 RHEL Program Management 2023-05-09 01:59:12 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 15 errata-xmlrpc 2023-07-19 16:19:10 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 (Red Hat Ceph Storage 5.3 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/RHBA-2023:4213