[LU-15282] Don't hold a spin locks during space alloc (rr policy) Created: 29/Nov/21  Updated: 16/Feb/23  Resolved: 11/Jul/22

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

Type: Bug Priority: Critical
Reporter: Alexey Lyashkov Assignee: Alexey Lyashkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-14745 sanity: sanity test_51d: @@@@@@ FAIL... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

alloc_rr now is broken during an lod landing because spin lock release during loop.
once no enough stripes during allocation loop reset will be to the wrong position.
Lets fix and replace this with atomic operations.



 Comments   
Comment by Gerrit Updater [ 01/Dec/21 ]

"Alexey Lyashkov <alexey.lyashkov@hpe.com>" uploaded a new patch: https://review.whamcloud.com/45694
Subject: LU-15282 lod: less spinlock on the alloc rr
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 4d4db988caa8b617535c3fe615837ea8ad3f9007

Comment by Gerrit Updater [ 17/Jan/22 ]

"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/46154
Subject: LU-15282 tests: improve sanity test_51d coverage
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 3d4dca962be558f7966dae51357fc6378a22852e

Comment by Gerrit Updater [ 18/Jan/22 ]

"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/46155
Subject: LU-15282 tests: improve sanity test_51d coverage
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 6b42c2292b6b9fb2960fa0b77551895af3d6b1e8

Comment by Gerrit Updater [ 31/Jan/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45694/
Subject: LU-15282 lod: less spinlock on the alloc rr
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: fa34a15f619c49535e214eec0d076872ac9a6b9a

Comment by Gerrit Updater [ 11/Jul/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46154/
Subject: LU-15282 tests: improve sanity test_51d coverage
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: fd5c915eff577bd7ff2c01133c7f8cf4d76b7c55

Comment by Peter Jones [ 11/Jul/22 ]

Landed for 2.16

Comment by Gerrit Updater [ 18/Jul/22 ]

"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/47978
Subject: LU-15282 tests: relax test_51d thresholds somewhat
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 316aca4d7a35cf1f5e990226f10cefd73ed17b39

Comment by Gerrit Updater [ 26/Jul/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47978/
Subject: LU-15282 tests: relax test_51d thresholds somewhat
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: afea45f4d2bc9b17f709515c7a9dd50ce8ecad36

Comment by Gerrit Updater [ 21/Dec/22 ]

"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49480
Subject: LU-15282 lod: less spinlock on the alloc rr
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 451402edf3425495dc718b9cfe7ade664411c038

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