svn commit: r306346 - head/sys/kern

Eric van Gyzen vangyzen at FreeBSD.org
Mon Sep 26 15:30:31 UTC 2016


Author: vangyzen
Date: Mon Sep 26 15:30:30 2016
New Revision: 306346
URL: https://svnweb.freebsd.org/changeset/base/306346

Log:
  Make no assertions about mutex state when the scheduler is stopped.
  
  This changes the assert path to match the lock and unlock paths.
  
  MFC after:	1 week
  Sponsored by:	Dell EMC

Modified:
  head/sys/kern/kern_mutex.c

Modified: head/sys/kern/kern_mutex.c
==============================================================================
--- head/sys/kern/kern_mutex.c	Mon Sep 26 15:03:31 2016	(r306345)
+++ head/sys/kern/kern_mutex.c	Mon Sep 26 15:30:30 2016	(r306346)
@@ -924,7 +924,7 @@ __mtx_assert(const volatile uintptr_t *c
 {
 	const struct mtx *m;
 
-	if (panicstr != NULL || dumping)
+	if (panicstr != NULL || dumping || SCHEDULER_STOPPED())
 		return;
 
 	m = mtxlock2mtx(c);


More information about the svn-src-head mailing list