diff options
-rw-r--r-- | sys/kern/kern_lock.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 7e8a55b..8938a14 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -48,7 +48,7 @@ * Locks provide shared/exclusive sychronization. */ -#ifdef DEBUG +#ifdef SIMPLELOCK_DEBUG #define COUNT(p, x) if (p) (p)->p_locks += (x) #else #define COUNT(p, x) @@ -171,9 +171,8 @@ lockmgr(lkp, flags, interlkp, p) else pid = LK_KERNPROC; simple_lock(&lkp->lk_interlock); - if (flags & LK_INTERLOCK) { + if (flags & LK_INTERLOCK) simple_unlock(interlkp); - } extflags = (flags | lkp->lk_flags) & LK_EXTFLG_MASK; #ifdef DIAGNOSTIC /* |