summaryrefslogtreecommitdiffstats
path: root/sys/dev/md
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-09-16 18:59:19 +0000
committerpjd <pjd@FreeBSD.org>2004-09-16 18:59:19 +0000
commit34730e1e31def9e1f1f9f2b6484393c24df1364b (patch)
treec9a74442ff9cff96e4af3adab857b9f3a6f33fdd /sys/dev/md
parentfd329e76c33bebfdbcc97da625ee528e9aa72026 (diff)
downloadFreeBSD-src-34730e1e31def9e1f1f9f2b6484393c24df1364b.zip
FreeBSD-src-34730e1e31def9e1f1f9f2b6484393c24df1364b.tar.gz
First wakeup, then unlock.
Diffstat (limited to 'sys/dev/md')
-rw-r--r--sys/dev/md/md.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 803356f..1687411 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -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);
}
OpenPOWER on IntegriCloud