summaryrefslogtreecommitdiffstats
path: root/sys/dev/md
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/md')
-rw-r--r--sys/dev/md/md.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 5059943..607c492 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -735,7 +735,8 @@ mdinit(struct md_s *sc)
sc->pp = pp;
g_error_provider(pp, 0);
g_topology_unlock();
- g_waitidle();
+ if (sc->type != MD_PRELOAD)
+ g_waitidle();
PICKUP_GIANT();
}
OpenPOWER on IntegriCloud