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:
parent
a529288d65
commit
f46fb03de7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285639
@ -5998,7 +5998,9 @@ DB_COMMAND(em_reset_dev, em_ddb_reset_dev)
|
|||||||
dev = devclass_get_device(dc, index);
|
dev = devclass_get_device(dc, index);
|
||||||
if (device_get_driver(dev) == &em_driver) {
|
if (device_get_driver(dev) == &em_driver) {
|
||||||
struct adapter *adapter = device_get_softc(dev);
|
struct adapter *adapter = device_get_softc(dev);
|
||||||
|
EM_CORE_LOCK(adapter);
|
||||||
em_init_locked(adapter);
|
em_init_locked(adapter);
|
||||||
|
EM_CORE_UNLOCK(adapter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user