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:
Colin Percival 2004-08-30 08:38:30 +00:00
parent 1fc4519b1d
commit 972be79add

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