Project

General

Profile

Actions

Bug #61818

open

mds: deadlock between unlink and linkmerge

Added by Xiubo Li 11 months ago. Updated 8 months ago.

Status:
Pending Backport
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
backport_processed
Backport:
pacific, quincy, reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

https://pulpito.ceph.com/xiubli-2023-06-26_02:38:43-fs:functional-wip-lxb-xlock-20230619-0716-distro-default-smithi/7316098/

When the unlink request was tried first time it will set the dentry's state to STATE_UNLINKING and then wait locks and then goto sleep.

Then a previous request finishes just after journal log was flushed and sending out the safe reply it will try to trigger a linkmerge by setting the INTEGRATING state, and the linkmerge reqeust, which is internal rename request, detectes that the dentry has been set to STATE_UNLINKING, so the linkmerge will wait the unlink to finish.

And then the unlink request is retried for the second time and but detects that the dentry is under linkmerging, so it will wait the linkmerge to finish.

Then caused the deadlock.


Related issues 6 (1 open5 closed)

Related to CephFS - Bug #62096: mds: infinite rename recursion on itselfDuplicatePatrick Donnelly

Actions
Related to CephFS - Bug #58340: mds: fsstress.sh hangs with multimds (deadlock between unlink and reintegrate straydn(rename))ResolvedXiubo Li

Actions
Related to CephFS - Bug #56695: [RHEL stock] pjd test failures(a bug that need to wait the unlink to finish)ResolvedXiubo Li

Actions
Copied to CephFS - Backport #62858: quincy: mds: deadlock between unlink and linkmergeIn ProgressXiubo LiActions
Copied to CephFS - Backport #62859: pacific: mds: deadlock between unlink and linkmergeResolvedXiubo LiActions
Copied to CephFS - Backport #62860: reef: mds: deadlock between unlink and linkmergeResolvedXiubo LiActions
Actions

Also available in: Atom PDF