[LU-15562] statahead: using try lock for batched statahead to avoid deadlock with rename and migrate operations Created: 17/Feb/22  Updated: 31/May/23  Resolved: 31/May/23

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

Type: Improvement Priority: Minor
Reporter: Qian Yingjin Assignee: Qian Yingjin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-15975 Statahead_V1 Features Resolved
is related to LU-14139 batched statahead processing Resolved
Rank (Obsolete): 9223372036854775807

 Description   

There may be possible racing between batched statahead RPC and rename()/migrate() operation.
To avoid this racer, the MDT uses a DLM trylock to obtain the DLM PR lock for file attributes in a batched statahead RPC. A failed try lock means other users maybe modify the directory simultaneously, it should stop batched RPC for statahead immediately.



 Comments   
Comment by Gerrit Updater [ 18/Feb/22 ]

"Yingjin Qian <qian@ddn.com>" uploaded a new patch: https://review.whamcloud.com/46549
Subject: LU-15562 statahead: using try lock for batched RPCs
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: f118b29138dcb9517b5eb311200fb8d0a751f6c4

Comment by Gerrit Updater [ 31/May/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/46549/
Subject: LU-15562 statahead: using try lock for batched RPCs
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 58549f9780418d548c9af284dd39b6a436878a7a

Comment by Peter Jones [ 31/May/23 ]

Landed for 2.16

Generated at Sat Feb 10 03:19:23 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.