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__);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to