PERFORCE change 88882 for review

John Baldwin jhb at FreeBSD.org
Thu Dec 29 08:12:22 PST 2005


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

Change 88882 by jhb at jhb_slimer on 2005/12/29 16:11:02

	WITNESS_SAVE/RESTORE doesn't work yet for spin locks.

Affected files ...

.. //depot/projects/smpng/sys/kern/kern_synch.c#94 edit

Differences ...

==== //depot/projects/smpng/sys/kern/kern_synch.c#94 (text+ko) ====

@@ -251,7 +251,9 @@
 	struct thread *td;
 	struct proc *p;
 	int rval;
+#if 0
 	WITNESS_SAVE_DECL(mtx);
+#endif
 
 	td = curthread;
 	p = td->td_proc;
@@ -277,7 +279,9 @@
 
 	DROP_GIANT();
 	mtx_assert(mtx, MA_OWNED | MA_NOTRECURSED);
+#if 0
 	WITNESS_SAVE(&mtx->mtx_object, mtx);
+#endif
 	mtx_unlock_spin(mtx);
 
 	/*
@@ -319,7 +323,9 @@
 #endif
 	PICKUP_GIANT();
 	mtx_lock_spin(mtx);
+#if 0
 	WITNESS_RESTORE(&mtx->mtx_object, mtx);
+#endif
 	return (rval);
 }
 


More information about the p4-projects mailing list