summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-06-21 09:12:08 +0000
committerpjd <pjd@FreeBSD.org>2004-06-21 09:12:08 +0000
commit78f7239eeff11e3426eb42dbc8ead64e270b98ad (patch)
treecf5602567d54aeb759cc243286c51530aa69c1ed /sys
parent7a9e41c1107e6d0b906e187052141df4727ec17b (diff)
downloadFreeBSD-src-78f7239eeff11e3426eb42dbc8ead64e270b98ad.zip
FreeBSD-src-78f7239eeff11e3426eb42dbc8ead64e270b98ad.tar.gz
Don't hold topology lock while calling g_gate_release().
Found by: KASSERT()
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/gate/g_gate.c2
1 files changed, 2 insertions, 0 deletions
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<queue_size>%u</queue_size>\n", indent,
sc->sc_queue_size);
sbuf_printf(sb, "%s<ref>%u</ref>\n", indent, sc->sc_ref);
+ g_topology_unlock();
g_gate_release(sc);
+ g_topology_lock();
}
static int
OpenPOWER on IntegriCloud