Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2003 10:30:40 -0700 (PDT)
From:      Andrew Reisse <areisse@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 38136 for review
Message-ID:  <200309161730.h8GHUem3021569@repoman.freebsd.org>

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

Change 38136 by areisse@areisse_tislabs on 2003/09/16 10:30:38

	explicit lock ordering for sebsd

Affected files ...

.. //depot/projects/trustedbsd/sebsd/sys/kern/subr_witness.c#7 edit

Differences ...

==== //depot/projects/trustedbsd/sebsd/sys/kern/subr_witness.c#7 (text+ko) ====

@@ -267,8 +267,11 @@
 	{ "uidinfo hash", &lock_class_mtx_sleep },
 	{ "uidinfo struct", &lock_class_mtx_sleep },
 	{ "allprison", &lock_class_mtx_sleep },
+
 	{ "SEBSD AVC", &lock_class_mtx_sleep },
-	{ "SEBSD Policy Lock", &lock_class_sx },
+	{ "SEBSD message lock", &lock_class_mtx_sleep },
+	{ "SEBSD policy lock", &lock_class_sx },
+
 	{ NULL, NULL },
 	/*
 	 * spin locks
@@ -318,6 +321,7 @@
 #if defined(__i386__) || defined(__amd64__)
 	{ "pcicfg", &lock_class_mtx_spin },
 #endif
+
 	{ NULL, NULL },
 	{ NULL, NULL }
 };
@@ -375,6 +379,7 @@
 	/*
 	 * We have to release Giant before initializing its witness
 	 * structure so that WITNESS doesn't get confused.
+
 	 */
 	mtx_unlock(&Giant);
 	mtx_assert(&Giant, MA_NOTOWNED);



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