summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_conf.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-06-26 14:44:24 +0000
committerpeter <peter@FreeBSD.org>1999-06-26 14:44:24 +0000
commit8aa37ce93896d038fb6991dfa4ddb9da20a3173a (patch)
tree9b2b050ff203b00dccf13d58836a3680d1153509 /sys/kern/vfs_conf.c
parentb5184a290e8a553843618c8beb113d67df465f98 (diff)
downloadFreeBSD-src-8aa37ce93896d038fb6991dfa4ddb9da20a3173a.zip
FreeBSD-src-8aa37ce93896d038fb6991dfa4ddb9da20a3173a.tar.gz
I'm tired of having a 'hanging root device'.. This isn't a "fix", just
a workaround for a specific case where cam interrupts right in the middle of this printf.
Diffstat (limited to 'sys/kern/vfs_conf.c')
-rw-r--r--sys/kern/vfs_conf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/vfs_conf.c b/sys/kern/vfs_conf.c
index 665d52f..c8ebca6 100644
--- a/sys/kern/vfs_conf.c
+++ b/sys/kern/vfs_conf.c
@@ -32,7 +32,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_conf.c 8.8 (Berkeley) 3/31/94
- * $Id: vfs_conf.c,v 1.27 1999/05/23 10:51:33 jb Exp $
+ * $Id: vfs_conf.c,v 1.28 1999/05/24 00:37:26 jb Exp $
*/
/*
@@ -118,6 +118,7 @@ vfs_mountrootfs(void *unused)
struct mount *mp;
int err;
struct proc *p = curproc; /* XXX */
+ int s;
int i;
dev_t orootdev;
@@ -146,7 +147,9 @@ vfs_mountrootfs(void *unused)
break;
rootdev = rootdevs[i];
if (rootdev != orootdev) {
+ s = splbio(); /* Overkill, but harmless.. */
printf("changing root device to %s\n", rootdevnames[i]);
+ splx(s);
orootdev = rootdev;
}
strncpy(mp->mnt_stat.f_mntfromname,
OpenPOWER on IntegriCloud