diff options
-rw-r--r-- | sys/kern/kern_lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 856642d..6653535 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -876,7 +876,7 @@ _lockmgr_disown(struct lock *lk, const char *file, int line) */ for (;;) { x = lk->lk_lock & LK_ALL_WAITERS; - if (atomic_cmpset_ptr(&lk->lk_lock, tid | x, + if (atomic_cmpset_rel_ptr(&lk->lk_lock, tid | x, LK_KERNPROC | x)) return; cpu_spinwait(); |