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:
parent
31cf3d2f81
commit
06ac376bea
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user