mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue