Author: vangyzen
Date: Wed Oct 19 00:14:22 2016
New Revision: 307588
URL: https://svnweb.freebsd.org/changeset/base/307588

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

Modified:
  stable/10/sys/kern/kern_mutex.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/kern_mutex.c
==============================================================================
--- stable/10/sys/kern/kern_mutex.c     Wed Oct 19 00:14:20 2016        
(r307587)
+++ stable/10/sys/kern/kern_mutex.c     Wed Oct 19 00:14:22 2016        
(r307588)
@@ -848,7 +848,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-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to