locks: follow up r313386
Unfinished diff was committed by accident. The loop in lock_delay was changed to decrement, but the loop iterator was still incrementing.
This commit is contained in:
parent
9f0b20a57c
commit
3c798b2b1f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313390
@ -128,7 +128,7 @@ lock_delay(struct lock_delay_arg *la)
|
||||
if (__predict_false(la->delay > lc->max))
|
||||
la->delay = lc->max;
|
||||
|
||||
for (i = la->delay; i > 0; i++)
|
||||
for (i = la->delay; i > 0; i--)
|
||||
cpu_spinwait();
|
||||
|
||||
la->spin_cnt += la->delay;
|
||||
|
Loading…
Reference in New Issue
Block a user