aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2024-10-04 14:53:57 +0000
committerMark Johnston <markj@FreeBSD.org>2024-10-04 15:56:34 +0000
commitb37b2543a23b44c78f6d78823dcfcedba46570db (patch)
treef9144f70f0f8a9cc383ef0553d80fe23a1ff0e89
parentd9fe71828797508d1d28655e40780a5ae9078e66 (diff)
-rw-r--r--sys/geom/gate/g_gate.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/geom/gate/g_gate.c b/sys/geom/gate/g_gate.c
index 85c21406eda0..ecdcacff6707 100644
--- a/sys/geom/gate/g_gate.c
+++ b/sys/geom/gate/g_gate.c
@@ -329,7 +329,6 @@ static void
g_gate_release(struct g_gate_softc *sc)
{
- g_topology_assert_not();
mtx_lock(&g_gate_units_lock);
sc->sc_ref--;
KASSERT(sc->sc_ref >= 0, ("Negative sc_ref for %s.", sc->sc_name));
@@ -453,9 +452,7 @@ g_gate_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp,
sc->sc_queue_size);
sbuf_printf(sb, "%s<ref>%u</ref>\n", indent, sc->sc_ref);
sbuf_printf(sb, "%s<unit>%d</unit>\n", indent, sc->sc_unit);
- g_topology_unlock();
g_gate_release(sc);
- g_topology_lock();
}
static int