Ignore mutex asserts when we're dumping as well. This allows me
to panic a system from DDB when INVARIANTS is compiled into the kernel on a scsi system.
This commit is contained in:
parent
0c36e9bb67
commit
1126349ae7
@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/bus.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/kdb.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/ktr.h>
|
||||
@ -728,7 +729,7 @@ void
|
||||
_mtx_assert(struct mtx *m, int what, const char *file, int line)
|
||||
{
|
||||
|
||||
if (panicstr != NULL)
|
||||
if (panicstr != NULL || dumping)
|
||||
return;
|
||||
switch (what) {
|
||||
case MA_OWNED:
|
||||
|
Loading…
x
Reference in New Issue
Block a user