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:
Sean Bruno 2015-07-16 16:32:57 +00:00
parent a529288d65
commit f46fb03de7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285639

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);
}
}
}