aboutsummaryrefslogtreecommitdiff
path: root/sys/geom
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2024-10-04 14:53:57 +0000
committerMark Johnston <markj@FreeBSD.org>2024-10-18 12:27:13 +0000
commit23b44ad101ca2381186aa565b6c04a978c02a35e (patch)
treea63a03c66abbd97c6e7e845571aaab104aab37b5 /sys/geom
parent6b2977c5978b58718d9cddc0a8c31e1bd9aa0361 (diff)
Diffstat (limited to 'sys/geom')
-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 820f18ba220c..8d0e96fce124 100644
--- a/sys/geom/gate/g_gate.c
+++ b/sys/geom/gate/g_gate.c
@@ -330,7 +330,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));
@@ -454,9 +453,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