Release the queue lock before restarting the worker loop.
Reported and tested by: pho MFC after: 3 days Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
04376fff7c
commit
807855890b
@ -1964,8 +1964,10 @@ g_mirror_worker(void *arg)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (g_mirror_event_first(sc) != NULL)
|
if (g_mirror_event_first(sc) != NULL) {
|
||||||
|
mtx_unlock(&sc->sc_queue_mtx);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
sx_xunlock(&sc->sc_lock);
|
sx_xunlock(&sc->sc_lock);
|
||||||
MSLEEP(sc, &sc->sc_queue_mtx, PRIBIO | PDROP, "m:w1",
|
MSLEEP(sc, &sc->sc_queue_mtx, PRIBIO | PDROP, "m:w1",
|
||||||
timeout * hz);
|
timeout * hz);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user