First wakeup, then unlock.

This commit is contained in:
Pawel Jakub Dawidek 2004-09-16 18:59:19 +00:00
parent 6ab0a0aefe
commit 4b07ede4a7

View File

@ -379,9 +379,8 @@ g_md_start(struct bio *bp)
bp->bio_bcount = bp->bio_length;
mtx_lock(&sc->queue_mtx);
bioq_disksort(&sc->bio_queue, bp);
mtx_unlock(&sc->queue_mtx);
wakeup(sc);
mtx_unlock(&sc->queue_mtx);
}