summaryrefslogtreecommitdiffstats
path: root/sys/dev/md/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/md/md.c')
-rw-r--r--sys/dev/md/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index caee7cf..6fcb02c 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -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);
}
OpenPOWER on IntegriCloud