[LU-10957] Return more lock bits from MDS for open-create Created: 26/Apr/18  Updated: 27/Apr/20

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

Type: Improvement Priority: Minor
Reporter: Oleg Drokin Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Related
is related to LU-10948 client cache open lock after N opens Open
is related to LU-11199 mdsrate open() performance degradation Resolved
Rank (Obsolete): 9223372036854775807

 Description   

Currently we return only layout lock for any open. With patches from LU-10948 we'll also return a lookup lock.

But I suspect on a successful create we should return a full set of bits except perhaps open lock - this would allow the name to be hashed and cache the attributes too.

In workloads like mdtest it's kind of important because after initial create the subsequent stat would be a 100% local operation as opposed to going to the server for a lookup or inode attrs revalidate.

There are basically no downsides. If we do create and then a lot of clients do conflicting things to the file - that's a single lock cancel to matter what anyway.


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