Actually this order (unlock, wakeup) in this case is race-safe and can

save us 2 context switches.

Explained by:	njl
This commit is contained in:
pjd 2004-09-18 09:16:19 +00:00
parent 31cf3d2f81
commit 06ac376bea

View File

@ -375,8 +375,8 @@ g_md_start(struct bio *bp)
sc = bp->bio_to->geom->softc;
mtx_lock(&sc->queue_mtx);
bioq_disksort(&sc->bio_queue, bp);
wakeup(sc);
mtx_unlock(&sc->queue_mtx);
wakeup(sc);
}