lockmgr: add missing 'continue' to account for spuriously failed fcmpset
PR: 248245 Reported by: gbe Noted by: markj Fixes by: r363415 ("lockmgr: add adaptive spinning")
This commit is contained in:
parent
bf2868538e
commit
138698898f
@ -836,6 +836,7 @@ lockmgr_xlock_hard(struct lock *lk, u_int flags, struct lock_object *ilk,
|
||||
if (x == LK_UNLOCKED) {
|
||||
if (atomic_fcmpset_acq_ptr(&lk->lk_lock, &x, tid))
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
if ((flags & (LK_ADAPTIVE | LK_INTERLOCK)) == LK_ADAPTIVE) {
|
||||
if (lockmgr_xlock_adaptive(&lda, lk, &x))
|
||||
|
Loading…
x
Reference in New Issue
Block a user