From 2b004a226d3c60ff159bc0988cda6ae660961f18 Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Sun, 22 Aug 2004 19:44:24 +0000 Subject: [PATCH] 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 --- sys/dev/md/md.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index bc61930fb83d..5059943cf46f 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -735,6 +735,7 @@ mdinit(struct md_s *sc) sc->pp = pp; g_error_provider(pp, 0); g_topology_unlock(); + g_waitidle(); PICKUP_GIANT(); }