When creating a new md, wait for geom's event queue to become empty

before returning.  Device nodes are created via the "taste" mechanism,
so this is necessary in order to make sure that devfs entries are
created before mdconfig(8) returns.

This may be a MFC candidate for 5.3.

Suggested by:	phk
This commit is contained in:
Colin Percival 2004-08-22 19:44:24 +00:00
parent bf5ab950e3
commit 2b004a226d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134178

View file

@ -735,6 +735,7 @@ mdinit(struct md_s *sc)
sc->pp = pp;
g_error_provider(pp, 0);
g_topology_unlock();
g_waitidle();
PICKUP_GIANT();
}