First wakeup, then unlock.
This commit is contained in:
parent
6ab0a0aefe
commit
4b07ede4a7
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user