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:
Paul Saab 2005-07-30 05:54:30 +00:00
parent 0c36e9bb67
commit 1126349ae7

View File

@ -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: