[LU-11104] rename under striped directory may cause deadlock Created: 27/Jun/18  Updated: 29/Jan/22  Due: 27/Aug/18  Resolved: 01/Aug/18

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.12.0

Type: Bug Priority: Critical
Reporter: Lai Siyao Assignee: Lai Siyao
Resolution: Fixed Votes: 0
Labels: dne2

Issue Links:
Related
is related to LU-6297 Move rename is_subdir check from MDD ... Open
is related to LU-4911 Using wrong attr inside mdd_is_subdir Resolved
is related to LU-11082 stuck threads on MDS Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

In rename locking, there are two situations we need to lock target
parent before source parent:
1. source parent is subdir of target parent.
2. source and target parents are both stripes of the same directory,
and stripe index of source parent is after that of target parent.

But the check for the second situation is missing, which may cause
deadlock if another thread is taking stripe locks of their parent.



 Comments   
Comment by Peter Jones [ 28/Jun/18 ]

https://review.whamcloud.com/#/c/32738/

Comment by Gerrit Updater [ 01/Aug/18 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/32701/
Subject: LU-11104 mdt: rename may cause deadlock
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 2131e4eda8fa354747d09bd3427a0a1d19c931e4

Comment by Peter Jones [ 01/Aug/18 ]

Landed for 2.12

Comment by Gerrit Updater [ 02/Aug/18 ]

Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/32924
Subject: LU-11104 mdt: rename may cause deadlock
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 2f6186ef9475bf329b828365ee844b42a57d945f

Generated at Sat Feb 10 02:40:58 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.