From 972be79add240fc128e3b96c39e35d7824192829 Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Mon, 30 Aug 2004 08:38:30 +0000 Subject: [PATCH] Don't g_waitidle() when initializing a preloaded md. This fixes a deadlock which otherwise occurs during the boot process. Reported by: kensmith MFC after: 3 days (assuming that re@ approves) --- sys/dev/md/md.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 5059943cf46f..607c492dbc7a 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(); }