[LU-16538] Return PR or PW lock mode for OPEN ibits lock for DoM files Created: 08/Feb/23  Updated: 16/Feb/23

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

Type: Improvement Priority: Minor
Reporter: Qian Yingjin Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None

Rank (Obsolete): 9223372036854775807

 Description   

In the current Lustre, an OPEN ibits lock returned to a client is mandatorily setting to specific lock mode:
open mode lock mode

  • FMODE_WRITE CW
  • FMODE_EXEC PR
  • other CR

For DoM files, it would better to return the corresponding DOM ibits lock together (combined) with OPEN ibits to a client during the open() or open-ahead(https://jira.whamcloud.com/browse/LU-16429) for the possible subsequent read or write, which can reduce extra lock traffic for DOM ibits lock.

The client needs to handle for PW or PW OPEN ibits lock properly.



 Comments   
Comment by Gerrit Updater [ 15/Feb/23 ]

"Qian Yingjin <qian@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49997
Subject: LU-16538 llite: use lock flags to distingush OPEN ibits lock
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 8a6a2a20e3a9af99949354983cdd888fa9d72610

Comment by Gerrit Updater [ 15/Feb/23 ]

"Qian Yingjin <qian@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/50006
Subject: LU-16538 dom: return PR or PW mode lock with OPEN|DOM bits
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 6748459a9b97569bd106571b777bdcaee2f04383

Comment by Gerrit Updater [ 16/Feb/23 ]

"Qian Yingjin <qian@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/50018
Subject: LU-16538 mdt: reserve connect flag for open lock modes
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: ccbb70172571a1bdb8096781492b7cc213680a08

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