PERFORCE change 38136 for review

Andrew Reisse areisse at FreeBSD.org
Tue Sep 16 17:30:40 GMT 2003


http://perforce.freebsd.org/chv.cgi?CH=38136

Change 38136 by areisse at 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);
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list