[LU-14709] invalidate remote MDT object which is accessed without lock Created: 26/May/21  Updated: 17/Sep/21  Resolved: 17/Sep/21

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

Type: Bug Priority: Minor
Reporter: Lai Siyao Assignee: Qian Yingjin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Remote object attributes are cached in OSP, and these attributes will be invalidated upon lock/unlock, but in several places they are accessed without lock, where they should be invalidated after use.



 Comments   
Comment by Alex Zhuravlev [ 26/May/21 ]

Lai, any specific example?

Comment by Lai Siyao [ 26/May/21 ]

ahh, I'm working on the patch, for example, mdt_fid2path(), and mdd_parent_fid() may skip invalidating if error happened in linkea reading.

Comment by Gerrit Updater [ 27/May/21 ]

Lai Siyao (lai.siyao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/43843
Subject: LU-14709 osp: invalidate upon .release
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 431ac36af7a9be66f5c23eb16b9910f2e0b4d058

Comment by John Hammond [ 13/Jul/21 ]

Cannot reproduce. Change abandoned.

Comment by Peter Jones [ 19/Aug/21 ]

Patch for master - https://review.whamcloud.com/#/c/44483/

Comment by Gerrit Updater [ 17/Sep/21 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44483/
Subject: LU-14709 pcc: VM_WRITE should not trigger layout write
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 373475a4f448c8e26a4dd7a3f88e7e962bc0b6e2

Comment by Peter Jones [ 17/Sep/21 ]

Landed for 2.15

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