[LU-14490] extra getattr RPC if striped directory as subdirectory mount Created: 05/Mar/21  Updated: 04/Mar/22  Resolved: 22/Mar/21

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

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

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Striped directory as subdirectory mount may not be able to cache LOOKUP lock for ROOT, and will cause extra getattr RPC for each file access. This is a bug in lmv_intent_lookup(), which replaces fid1 with stripe FID which "/" is mapped to by hash, while for striped directory, fid2 is master object FID, if they are not located on the same MDT, server will treat it as remote object, and won't reply LOOKUP lock back.

Note, even if this is fixed, user should avoid use remote directory (either plain or striped directory) as subdirectory mount, because remote object can't fetch LOOKUP lock.



 Comments   
Comment by Gerrit Updater [ 05/Mar/21 ]

Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/41893
Subject: LU-14490 lmv: striped directory as subdirectory mount
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 102267b08a90faabc43ed97b9e6c89b2d60272ac

Comment by Gerrit Updater [ 13/Mar/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41893/
Subject: LU-14490 lmv: striped directory as subdirectory mount
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 775f88ed6c8b6235031268e258e15da405a5b955

Comment by Gerrit Updater [ 16/Mar/21 ]

Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/42046
Subject: LU-14490 lmv: striped directory as subdirectory mount
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 60d48d4d9458d3341ee456e81e8be2fe76f1b24a

Comment by Gerrit Updater [ 22/Mar/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/42046/
Subject: LU-14490 lmv: striped directory as subdirectory mount
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 1d3941011bb8a7436f724bc83cf33e6a45eff15e

Comment by Peter Jones [ 22/Mar/21 ]

Landed for 2.15 and 2.12.7

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