[LU-6458] Try to read linkEA first in mdd_parent_fid Created: 13/Apr/15  Updated: 01/Jul/16  Resolved: 07/Jul/15

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

Type: Bug Priority: Minor
Reporter: Di Wang Assignee: Di Wang
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Right now, we do lookup .. to get parent FID in mdd_parent_fid. Instead we should try to retrieve parent FID from linkEA first, if it fails, then lookup. two benefits:

1. read EA will be likely cheaper than lookup.
2. for stripe dir, it might load all sub_stripes in memory, and pin them in the memory with the master object. i.e. these sub stripe object will only be released when the master object is freed, which might cause that notorious lu_object_find() hang to wait for the BANSEE object to be put.



 Comments   
Comment by Gerrit Updater [ 13/Apr/15 ]

wangdi (di.wang@intel.com) uploaded a new patch: http://review.whamcloud.com/14444
Subject: LU-6458 mdd: try linkEA first in mdd_parent_fid
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: c480f89625bca3a829b656c10829498aaed7d487

Comment by Gerrit Updater [ 05/Jun/15 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/14444/
Subject: LU-6458 mdd: try linkEA first in mdd_parent_fid
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 993858982eda2c7a7179b6c67c2d425df8e692f8

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