[LU-10357] ll_ioc_copy_{start,end}() depend on search_inode_for_lustre() which is bad Created: 08/Dec/17  Updated: 09/Feb/18  Resolved: 04/Jan/18

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.11.0, Lustre 2.10.4

Type: Bug Priority: Minor
Reporter: John Hammond Assignee: John Hammond
Resolution: Fixed Votes: 0
Labels: hsm

Issue Links:
Related
is related to LU-10302 hsm: obscure bug with multi-mountpoin... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

In the HSM archive cases of ll_ioc_copy_{start,end}() we depend on search_inode_for_lustre() to get the data version. search_inode_for_lustre() does a MDS_GETATTR using the FID and returns a only partially initialized inode. The CT will later open and fstat the file so we have extra 3 RPCs (getattr, enqueue for layout for data version, enqueue for stat). If the CT would open the file to be archived before the the start ioctl and close it after the end ioctl then we could skip the extra 3 RPCs and just send 1 open.



 Comments   
Comment by Gerrit Updater [ 08/Dec/17 ]

John L. Hammond (john.hammond@intel.com) uploaded a new patch: https://review.whamcloud.com/30456
Subject: LU-10357 hsm: open file to be archived before starting
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 13b8102c912e48cbec2d01416678f7165883610b

Comment by Gerrit Updater [ 04/Jan/18 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/30456/
Subject: LU-10357 hsm: open file to be archived before starting
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 77cd1a21e312ca00b37b33689091734a12eec048

Comment by Peter Jones [ 04/Jan/18 ]

Landed for 2.11

Comment by Gerrit Updater [ 04/Jan/18 ]

Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/30721
Subject: LU-10357 hsm: open file to be archived before starting
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 169b17f5c68a2b637ea921d7a9812ad102f167ef

Comment by Gerrit Updater [ 09/Feb/18 ]

John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/30721/
Subject: LU-10357 hsm: open file to be archived before starting
Project: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: 56d0f3df87f4fecae028d7aace73f8979f54ae94

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