svn commit: r213271 - head/sys/sys
John Baldwin
jhb at FreeBSD.org
Wed Sep 29 13:24:57 UTC 2010
Author: jhb
Date: Wed Sep 29 13:24:56 2010
New Revision: 213271
URL: http://svn.freebsd.org/changeset/base/213271
Log:
Account for unlocking a spin mutex in the lock profiling code in the !SMP
case.
Submitted by: truckman
MFC after: 3 days
Modified:
head/sys/sys/mutex.h
Modified: head/sys/sys/mutex.h
==============================================================================
--- head/sys/sys/mutex.h Wed Sep 29 13:08:23 2010 (r213270)
+++ head/sys/sys/mutex.h Wed Sep 29 13:24:56 2010 (r213271)
@@ -251,8 +251,11 @@ void _thread_lock_flags(struct thread *,
#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 */
More information about the svn-src-all
mailing list