svn commit: r189789 - head/sys/kern
Jeff Roberson
jeff at FreeBSD.org
Sat Mar 14 04:43:50 PDT 2009
Author: jeff
Date: Sat Mar 14 11:43:38 2009
New Revision: 189789
URL: http://svn.freebsd.org/changeset/base/189789
Log:
- When a mutex is destroyed while locked we need to inform lock profiling
that it has been released.
Modified:
head/sys/kern/kern_mutex.c
Modified: head/sys/kern/kern_mutex.c
==============================================================================
--- head/sys/kern/kern_mutex.c Sat Mar 14 11:43:02 2009 (r189788)
+++ head/sys/kern/kern_mutex.c Sat Mar 14 11:43:38 2009 (r189789)
@@ -765,6 +765,7 @@ mtx_destroy(struct mtx *m)
else
curthread->td_locks--;
+ lock_profile_release_lock(&m->lock_object);
/* Tell witness this isn't locked to make it happy. */
WITNESS_UNLOCK(&m->lock_object, LOP_EXCLUSIVE, __FILE__,
__LINE__);
More information about the svn-src-all
mailing list