[LU-12369] lfs setstripe causes MDS DLM lock callback during create Created: 31/May/19  Updated: 31/May/19

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

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Related
is related to LU-11264 llapi_* routines demonstrate poor per... Open
Rank (Obsolete): 9223372036854775807

 Description   

Running lfs setstripe on a file with open(O_LOV_DELAY_CREATE) results in the MDS sending a DLM lock callback to the client for the newly-created file when ioctl(LL_IOC_LOV_SETSTRIPE) is called. I believe (but am not positive) that the callback is on the MDS_INODELOCK_LAYOUT bit of the inode.

It doesn't make sense for the MDS to grant this bit to the client when O_LOV_DELAY_CREATE is used, since the file does not have a layout, and it is very likely that the client will call ioctl(LL_IOC_LOV_SETSTRIPE) immediately thereafter.


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