From 78f7239eeff11e3426eb42dbc8ead64e270b98ad Mon Sep 17 00:00:00 2001 From: pjd Date: Mon, 21 Jun 2004 09:12:08 +0000 Subject: Don't hold topology lock while calling g_gate_release(). Found by: KASSERT() --- sys/geom/gate/g_gate.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/geom/gate/g_gate.c') diff --git a/sys/geom/gate/g_gate.c b/sys/geom/gate/g_gate.c index aae2d0e..360238b 100644 --- a/sys/geom/gate/g_gate.c +++ b/sys/geom/gate/g_gate.c @@ -355,7 +355,9 @@ g_gate_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, sbuf_printf(sb, "%s%u\n", indent, sc->sc_queue_size); sbuf_printf(sb, "%s%u\n", indent, sc->sc_ref); + g_topology_unlock(); g_gate_release(sc); + g_topology_lock(); } static int -- cgit v1.1