summaryrefslogtreecommitdiffstats
path: root/sys/dev/md
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2004-08-22 19:44:24 +0000
committercperciva <cperciva@FreeBSD.org>2004-08-22 19:44:24 +0000
commit763aa6bdef5df1852562a03139d652132c38bdec (patch)
tree2983508cf020ea466df47c26609eb083766269a9 /sys/dev/md
parentf13126589a3656f9cda3ab42d30195773a416e56 (diff)
downloadFreeBSD-src-763aa6bdef5df1852562a03139d652132c38bdec.zip
FreeBSD-src-763aa6bdef5df1852562a03139d652132c38bdec.tar.gz
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
Diffstat (limited to 'sys/dev/md')
-rw-r--r--sys/dev/md/md.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index bc61930..5059943 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();
}
OpenPOWER on IntegriCloud