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
This commit is contained in:
Eric van Gyzen 2016-09-26 15:30:30 +00:00
parent f1fe58d376
commit 310ab671b8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306346

View File

@ -924,7 +924,7 @@ __mtx_assert(const volatile uintptr_t *c, int what, const char *file, int line)
{
const struct mtx *m;
if (panicstr != NULL || dumping)
if (panicstr != NULL || dumping || SCHEDULER_STOPPED())
return;
m = mtxlock2mtx(c);