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:
markj 2018-01-08 15:41:49 +00:00
parent 04376fff7c
commit 807855890b

View File

@ -1964,8 +1964,10 @@ g_mirror_worker(void *arg)
continue;
}
}
if (g_mirror_event_first(sc) != NULL)
if (g_mirror_event_first(sc) != NULL) {
mtx_unlock(&sc->sc_queue_mtx);
continue;
}
sx_xunlock(&sc->sc_lock);
MSLEEP(sc, &sc->sc_queue_mtx, PRIBIO | PDROP, "m:w1",
timeout * hz);