From a8be0605e4058f34fbf2e2c86f7cec3b832980fd Mon Sep 17 00:00:00 2001 From: pjd Date: Sat, 12 Feb 2005 16:19:03 +0000 Subject: [PATCH] Fix typo. We want to unlock mutex here. Submitted by: Andreas Kohn MFC after: 1 week --- sys/geom/gate/g_gate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/geom/gate/g_gate.c b/sys/geom/gate/g_gate.c index 73a43e396a2a..30e2ba320e13 100644 --- a/sys/geom/gate/g_gate.c +++ b/sys/geom/gate/g_gate.c @@ -214,7 +214,7 @@ g_gate_start(struct bio *bp) mtx_lock(&sc->sc_queue_mtx); if (sc->sc_queue_count > sc->sc_queue_size) { - mtx_lock(&sc->sc_queue_mtx); + mtx_unlock(&sc->sc_queue_mtx); G_GATE_LOGREQ(1, bp, "Queue full, request canceled."); g_io_deliver(bp, EIO); return;