summaryrefslogtreecommitdiffstats
path: root/sys/geom/gate
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-02-16 16:13:56 +0000
committerpjd <pjd@FreeBSD.org>2005-02-16 16:13:56 +0000
commitb83e0d6d3f4f4d41e5cbdd9b7d9bc50493512ceb (patch)
tree9ef183d3ad3022df22a7e7ced89b49726c02ebd7 /sys/geom/gate
parenta0cee6bbb3a874d29c0bd5cd867bc63877c7b349 (diff)
downloadFreeBSD-src-b83e0d6d3f4f4d41e5cbdd9b7d9bc50493512ceb.zip
FreeBSD-src-b83e0d6d3f4f4d41e5cbdd9b7d9bc50493512ceb.tar.gz
Remove mutex asserion from g_gate_find(). We don't want g_gate_list_mtx
mutex to be held here, because we want speed here.
Diffstat (limited to 'sys/geom/gate')
-rw-r--r--sys/geom/gate/g_gate.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/geom/gate/g_gate.c b/sys/geom/gate/g_gate.c
index b1f665f..c1b42c4 100644
--- a/sys/geom/gate/g_gate.c
+++ b/sys/geom/gate/g_gate.c
@@ -235,7 +235,6 @@ g_gate_find(u_int unit)
{
struct g_gate_softc *sc;
- mtx_assert(&g_gate_list_mtx, MA_OWNED);
LIST_FOREACH(sc, &g_gate_list, sc_next) {
if (sc->sc_unit == unit)
break;
OpenPOWER on IntegriCloud