Fix typo. We want to unlock mutex here.
Submitted by: Andreas Kohn <andreas.kohn@gmail.com> MFC after: 1 week
This commit is contained in:
parent
a8c10a694d
commit
a8be0605e4
@ -214,7 +214,7 @@ g_gate_start(struct bio *bp)
|
|||||||
|
|
||||||
mtx_lock(&sc->sc_queue_mtx);
|
mtx_lock(&sc->sc_queue_mtx);
|
||||||
if (sc->sc_queue_count > sc->sc_queue_size) {
|
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_GATE_LOGREQ(1, bp, "Queue full, request canceled.");
|
||||||
g_io_deliver(bp, EIO);
|
g_io_deliver(bp, EIO);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user