[LU-14397] A race between lock enqueue and idle import Created: 03/Feb/21  Updated: 23/Jul/21  Resolved: 28/Apr/21

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

Type: Bug Priority: Major
Reporter: Alexander Boyko Assignee: Alexander Boyko
Resolution: Fixed Votes: 0
Labels: patch

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

There is a window after ptlrpc_check_import_is_idle() and setting LUSTRE_IMP_CONNECTING for lock enqueue. The lock get granted on OST and is returned to the client. Server's lock is destroyed on OST_DISCONNECT.



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

Alexander Boyko (alexander.boyko@hpe.com) uploaded a new patch: https://review.whamcloud.com/41403
Subject: LU-14397 ptlrpc: idle import vs lock enqueue race
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d847d29ee5391a32e328b1d496ff9dbb9b68d94c

Comment by Gerrit Updater [ 28/Apr/21 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/41403/
Subject: LU-14397 ptlrpc: idle import vs lock enqueue race
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: e6af3c529021976e6df5b5e729d6a6197d27fe11

Comment by Peter Jones [ 28/Apr/21 ]

Landed for 2.15

Comment by Andreas Dilger [ 23/Jul/21 ]

Note that there are occasional timeouts in this test:
https://testing.whamcloud.com/sub_tests/ff3d1a25-4d12-4cfc-8f7a-889d8fa977d0
https://testing.whamcloud.com/sub_tests/978a26a1-fcbc-4be2-825f-e93308d14c4d
https://testing.whamcloud.com/sub_tests/4a377d5b-3ae3-4cb5-bdbe-f2d2fdbb8d80
https://testing.whamcloud.com/sub_tests/725c2047-a3d6-48ad-aada-3722d7141468
https://testing.whamcloud.com/sub_tests/8f627fa7-20c4-43d0-91d8-b3cd73dbe40f
https://testing.whamcloud.com/sub_tests/f64bb7c7-d3e9-40a7-89d7-a6f343e7a07b

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