diff options
| -rw-r--r-- | sys/dev/md/md.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index e2922fc98b7ad..acb09c0d7c5b1 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; } |
