summaryrefslogtreecommitdiffstats
path: root/sys/geom/mirror
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-04-03 19:46:12 +0000
committerthompsa <thompsa@FreeBSD.org>2009-04-03 19:46:12 +0000
commitfe5458f66537db2116edb0ad1cfa8b9da5fb1ba3 (patch)
tree55afba560e3d37dfdc20bbbb68db00bf16a00f1d /sys/geom/mirror
parentd8382f158111ab26e940097a0ca91abe5de5035a (diff)
downloadFreeBSD-src-fe5458f66537db2116edb0ad1cfa8b9da5fb1ba3.zip
FreeBSD-src-fe5458f66537db2116edb0ad1cfa8b9da5fb1ba3.tar.gz
Add a how argument to root_mount_hold() so it can be passed NOWAIT and be called
in situations where sleeping isnt allowed.
Diffstat (limited to 'sys/geom/mirror')
-rw-r--r--sys/geom/mirror/g_mirror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c
index 13ff6ea..85b5b24 100644
--- a/sys/geom/mirror/g_mirror.c
+++ b/sys/geom/mirror/g_mirror.c
@@ -2907,7 +2907,7 @@ g_mirror_create(struct g_class *mp, const struct g_mirror_metadata *md)
G_MIRROR_DEBUG(1, "Device %s created (%u components, id=%u).",
sc->sc_name, sc->sc_ndisks, sc->sc_id);
- sc->sc_rootmount = root_mount_hold("GMIRROR");
+ sc->sc_rootmount = root_mount_hold("GMIRROR", M_WAITOK);
G_MIRROR_DEBUG(1, "root_mount_hold %p", sc->sc_rootmount);
/*
* Run timeout.
OpenPOWER on IntegriCloud