Bug 2136407 - mds: wait unlink to finish to avoid conflict when creating same dentries
Summary: mds: wait unlink to finish to avoid conflict when creating same dentries
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: CephFS
Version: 5.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 5.3z1
Assignee: Venky Shankar
QA Contact: Yogesh Mane
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-20 08:39 UTC by Xiubo Li
Modified: 2023-02-28 10:06 UTC (History)
7 users (show)

Fixed In Version: ceph-16.2.10-103.el8cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-02-28 10:06:16 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 55332 0 None None None 2022-10-20 08:41:52 UTC
Github ceph ceph pull 46331 0 None Merged mds: wait unlink to finish to avoid conflict when creating same dentries 2022-10-20 08:41:52 UTC
Red Hat Issue Tracker RHCEPH-5471 0 None None None 2022-10-20 08:43:13 UTC
Red Hat Product Errata RHSA-2023:0980 0 None None None 2023-02-28 10:06:51 UTC

Description Xiubo Li 2022-10-20 08:39:10 UTC
Description of problem:

If the previous unlink request has been delayed due to some reasons,
and the new creating for the same dentry may fail or new open will
succeeds but new contents wrote to it will be lost.
    
The kernel client will make sure before the unlink getting the first
reply it won't send the followed create requests for the same dentry.
Here we need to make sure that before the first reply has been sent
out the dentry must be marked as unlinking.
    


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 RHEL Program Management 2022-10-20 08:39:21 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 12 errata-xmlrpc 2023-02-28 10:06:16 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 (Important: Red Hat Ceph Storage 5.3 Bug fix and security 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:0980


Note You need to log in before you can comment on or make changes to this bug.