[LU-14455] mdt_dom_resource_prolong() can miss needed lock Created: 19/Feb/21  Updated: 22/Feb/21  Resolved: 22/Feb/21

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

Type: Bug Priority: Major
Reporter: Mikhail Pershin Assignee: Mikhail Pershin
Resolution: Fixed Votes: 0
Labels: None

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

 Description   

mdt_dom_resource_prolong() should find all locks on the resource to prolong them when needed but it stops after the first one found. That is not correct because found lock could be even from different export and mdt_rw_hpreq_check() will end with -ESTALE error wrongly



 Comments   
Comment by Gerrit Updater [ 19/Feb/21 ]

Mike Pershin (mpershin@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/41701
Subject: LU-14455 mdt: fix DoM lock prolong logic
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d659f5086e27b3e54d4b041d50920352bf02538e

Comment by Gerrit Updater [ 22/Feb/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41701/
Subject: LU-14455 mdt: fix DoM lock prolong logic
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a54ecd2c2d964e2ae226fca5b043b5462a34eb7b

Comment by Peter Jones [ 22/Feb/21 ]

Landed for 2.15

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