[LU-1598] Bypass OI lookup in osd_fid_lookup() if it's for file creation Created: 04/Jul/12  Updated: 27/Sep/12  Resolved: 27/Sep/12

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

Type: Bug Priority: Minor
Reporter: Liang Zhen (Inactive) Assignee: Liang Zhen (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Rank (Obsolete): 4557

 Description   

It's unnecessary to call osd_oi_lookup() in osd_fid_lookup if it's a file creation because FID shouldn't never be re-used so we expect it to be not existed, which means we can bypass overhead of OI lookup at here, if it's really a duplicate FID from unexpected reasons, we should be able to detect it later while calling do_create->osd_oi_insert().



 Comments   
Comment by Alex Zhuravlev [ 04/Jul/12 ]

look at the recent FanYong's patches - one of them introduces NEW flag on the server side and basically skip OI lookup for new files in some cases.

Comment by Liang Zhen (Inactive) [ 04/Jul/12 ]

patch is here: http://review.whamcloud.com/3269

Comment by Liang Zhen (Inactive) [ 04/Jul/12 ]

look at the recent FanYong's patches - one of them introduces NEW flag on the server side and basically skip OI lookup for new files in some cases.

Yes, my patch is using this flag

Comment by Jodi Levi (Inactive) [ 27/Sep/12 ]

Please let me know if this ticket needs to be reopened.

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