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:
parent
f1fe58d376
commit
310ab671b8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306346
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user