aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/md
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2002-11-30 22:03:53 +0000
committerIan Dowse <iedowse@FreeBSD.org>2002-11-30 22:03:53 +0000
commite176446dc85f0741116754fbb800e652f619b4ed (patch)
treea6be107f84de8fdd7b8634a03db1325515de9dce /sys/dev/md
parentde5305d5b6489c99d0ca69935dcc478b77b20577 (diff)
Notes
Diffstat (limited to 'sys/dev/md')
-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 e2922fc98b7a..acb09c0d7c5b 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -577,12 +577,12 @@ md_kthread(void *arg)
bioq_remove(&sc->bio_queue, bp);
/* XXX: UNLOCK(unique unit numbers) */
if (!bp) {
- tsleep(sc, PRIBIO, "mdwait", 0);
if (sc->flags & MD_SHUTDOWN) {
sc->procp = NULL;
wakeup(&sc->procp);
kthread_exit(0);
}
+ tsleep(sc, PRIBIO, "mdwait", 0);
continue;
}