diff options
-rw-r--r-- | sys/sys/mutex.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index 929bf43..5800f80 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -251,8 +251,11 @@ void _thread_lock_flags(struct thread *, int, const char *, int); #define _rel_spin_lock(mp) do { \ if (mtx_recursed((mp))) \ (mp)->mtx_recurse--; \ - else \ + else { \ + LOCKSTAT_PROFILE_RELEASE_LOCK(LS_MTX_SPIN_UNLOCK_RELEASE, \ + mp); \ (mp)->mtx_lock = MTX_UNOWNED; \ + } \ spinlock_exit(); \ } while (0) #endif /* SMP */ |