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);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to