Add an adapter CORE lock in the DDB hook em_dump_queue to avoid WITNESS

panic in em_init_locked() while debugging.

MFC after:	2 weeks
Sponsored by:	Limelight Networks
This commit is contained in:
sbruno 2015-07-16 16:32:57 +00:00
parent ce589d6074
commit 835fec4a18

View File

@ -5998,7 +5998,9 @@ DB_COMMAND(em_reset_dev, em_ddb_reset_dev)
dev = devclass_get_device(dc, index);
if (device_get_driver(dev) == &em_driver) {
struct adapter *adapter = device_get_softc(dev);
EM_CORE_LOCK(adapter);
em_init_locked(adapter);
EM_CORE_UNLOCK(adapter);
}
}
}