Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2006 17:15:25 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 102393 for review
Message-ID:  <200607251715.k6PHFPU4082207@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=102393

Change 102393 by jhb@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__,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607251715.k6PHFPU4082207>