Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Jan 2006 23:54:14 +0100
From:      des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=)
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern kern_mutex.c kern_sx.c subr_witness.c src/sys/sys _lock.h lock.h
Message-ID:  <86mzi955nt.fsf@xps.des.no>
In-Reply-To: <200601061807.k06I7WHQ034800@repoman.freebsd.org> (John Baldwin's message of "Fri, 6 Jan 2006 18:07:32 %2B0000 (UTC)")
References:  <200601061807.k06I7WHQ034800@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

John Baldwin <jhb@FreeBSD.org> writes:
>   Log:
>   Trim another pointer from struct lock_object (and thus from struct mtx =
and
>   struct sx).  [...]

Missed one...

DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=kern_mutex.diff

Index: sys/kern/kern_mutex.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/kern_mutex.c,v
retrieving revision 1.160
diff -u -r1.160 kern_mutex.c
--- sys/kern/kern_mutex.c	6 Jan 2006 18:07:31 -0000	1.160
+++ sys/kern/kern_mutex.c	6 Jan 2006 22:52:21 -0000
@@ -884,7 +884,7 @@
 		MPASS((m->mtx_lock & (MTX_RECURSED|MTX_CONTESTED)) == 0);
 
 		/* Perform the non-mtx related part of mtx_unlock_spin(). */
-		if (m->mtx_object.lo_class == &lock_class_mtx_spin)
+		if (LO_CLASSINDEX(&m->mtx_object) == LOCK_CLASS_SPIN_MUTEX)
 			spinlock_exit();
 
 		/* Tell witness this isn't locked to make it happy. */

--=-=-=--




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