[LU-15381] Obtain file size information under locks for HSM release Created: 17/Dec/21  Updated: 09/Mar/22  Resolved: 11/Feb/22

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

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

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

 Description   

In HSM release, it obtains file size and blocks information via @ll_merge_attr without any lock protection, it may get the wrong file size.

we found a bug that a HSM restore followed by a HSM release will set the file size with 0 wrongly.



 Comments   
Comment by Qian Yingjin [ 17/Dec/21 ]

As we use data version to flush all cache and revoke the locks on all clients, thus we could update the size and block attributes in data version operations (however, it still does not protect with any locks)?

By this way, we can avoid the glimpse RPC to get the file size?

Will make a patch sooner.

Comment by Gerrit Updater [ 24/Dec/21 ]

"Yingjin Qian <qian@ddn.com>" uploaded a new patch: https://review.whamcloud.com/45935
Subject: LU-15381 hsm: update size upon completion of data version
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b8d2a67253538f17f46e244a264d02d80a528548

Comment by Gerrit Updater [ 26/Jan/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45935/
Subject: LU-15381 hsm: update size upon completion of data version
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: dd3b5601ec6905b00d07cbcb8c139c46dd555b3b

Comment by Peter Jones [ 11/Feb/22 ]

Landed for 2.15

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