aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorSean Bruno <sbruno@FreeBSD.org>2015-07-16 16:32:57 +0000
committerSean Bruno <sbruno@FreeBSD.org>2015-07-16 16:32:57 +0000
commitf46fb03de73d4a69d4a6cf82e4f1bbd4562008b6 (patch)
tree5bd15409144a9c3fcfd10b67a83f73f0ee7c4926 /sys
parenta529288d65f247e4d7d0861240910455782775f0 (diff)
downloadsrc-f46fb03de73d4a69d4a6cf82e4f1bbd4562008b6.tar.gz
src-f46fb03de73d4a69d4a6cf82e4f1bbd4562008b6.zip
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
Notes
Notes: svn path=/head/; revision=285639
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/e1000/if_em.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/e1000/if_em.c b/sys/dev/e1000/if_em.c
index 52b03d65ca50..d080168dedbb 100644
--- a/sys/dev/e1000/if_em.c
+++ b/sys/dev/e1000/if_em.c
@@ -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);
}
}
}