[LU-16179] race in ll_splice_alias() may lead to two valid dentries for the same file Created: 22/Sep/22  Updated: 26/Sep/22  Resolved: 26/Sep/22

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

Type: Bug Priority: Minor
Reporter: Lai Siyao Assignee: Lai Siyao
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates LU-9868 dcache/namei fixes for lustre Open
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

ll_splice_alias() calls ll_find_alias() before calling d_add(), but if there are concurrent lookups, both may not find alias dentry, and add dentry, therefore there may be more than one valid dentries for the same file, which may cause deadlock in rename().



 Comments   
Comment by Gerrit Updater [ 22/Sep/22 ]

"Lai Siyao <lai.siyao@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/48624
Subject: LU-16179 llite: race in ll_splice_alias()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 3c02182bd0eaab291c400c66a295396943cf3c90

Comment by Peter Jones [ 26/Sep/22 ]

Fixed already by https://review.whamcloud.com/#/c/fs/lustre-release/+/28486/

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