diff options
author | pjd <pjd@FreeBSD.org> | 2005-02-12 16:19:03 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-02-12 16:19:03 +0000 |
commit | a8be0605e4058f34fbf2e2c86f7cec3b832980fd (patch) | |
tree | 919e2fe3a2066342a5a31a9ea7e5dcddba117342 /sys/geom/gate | |
parent | a8c10a694df84686d4fe7559cc306081ace75c55 (diff) | |
download | FreeBSD-src-a8be0605e4058f34fbf2e2c86f7cec3b832980fd.zip FreeBSD-src-a8be0605e4058f34fbf2e2c86f7cec3b832980fd.tar.gz |
Fix typo. We want to unlock mutex here.
Submitted by: Andreas Kohn <andreas.kohn@gmail.com>
MFC after: 1 week
Diffstat (limited to 'sys/geom/gate')
-rw-r--r-- | sys/geom/gate/g_gate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/gate/g_gate.c b/sys/geom/gate/g_gate.c index 73a43e3..30e2ba3 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; |