PERFORCE change 102393 for review
John Baldwin
jhb at FreeBSD.org
Tue Jul 25 17:15:26 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=102393
Change 102393 by jhb at jhb_mutex on 2006/07/25 17:14:51
Missed an unlock case where td_locks needs to be decremented.
Affected files ...
.. //depot/projects/smpng/sys/kern/kern_mutex.c#131 edit
Differences ...
==== //depot/projects/smpng/sys/kern/kern_mutex.c#131 (text+ko) ====
@@ -912,6 +912,8 @@
/* Perform the non-mtx related part of mtx_unlock_spin(). */
if (LOCK_CLASS(&m->mtx_object) == &lock_class_mtx_spin)
spinlock_exit();
+ else
+ curthread->td_locks--;
/* Tell witness this isn't locked to make it happy. */
WITNESS_UNLOCK(&m->mtx_object, LOP_EXCLUSIVE, __FILE__,
More information about the p4-projects
mailing list