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)
This commit is contained in:
cperciva 2004-08-30 08:38:30 +00:00
parent 922e581a21
commit 94c7897b9f

View File

@ -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();
}