summaryrefslogtreecommitdiffstats
path: root/sys/fs/coda/coda_vfsops.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-07-11 21:33:46 +0000
committerrwatson <rwatson@FreeBSD.org>2007-07-11 21:33:46 +0000
commit1c2785e3feee8cca588a879987d04f7ae1784fa8 (patch)
tree40992670cb35548ade1720d67ac18ef76ebba961 /sys/fs/coda/coda_vfsops.c
parent4f942d92aa035ca844a5c3963c110132a8b82226 (diff)
downloadFreeBSD-src-1c2785e3feee8cca588a879987d04f7ae1784fa8.zip
FreeBSD-src-1c2785e3feee8cca588a879987d04f7ae1784fa8.tar.gz
Avoid a panic in insmntque when we pass a NULL mount: this reenables
some previously disabled code which according to the comment caused a problem during shutdown. But even that is still better than triggering a kernel panic whenever venus is started. Submitted by: Jan Harkes <jaharkes@cs.cmu.edu> Approved by: re (kensmith)
Diffstat (limited to 'sys/fs/coda/coda_vfsops.c')
-rw-r--r--sys/fs/coda/coda_vfsops.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/fs/coda/coda_vfsops.c b/sys/fs/coda/coda_vfsops.c
index ffce238..4e30e22 100644
--- a/sys/fs/coda/coda_vfsops.c
+++ b/sys/fs/coda/coda_vfsops.c
@@ -183,13 +183,7 @@ coda_mount(struct mount *vfsp, struct thread *td)
rootvp = CTOV(cp);
rootvp->v_vflag |= VV_ROOT;
-/* cp = make_coda_node(&ctlfid, vfsp, VCHR);
- The above code seems to cause a loop in the cnode links.
- I don't totally understand when it happens, it is caught
- when closing down the system.
- */
- cp = make_coda_node(&ctlfid, 0, VCHR);
-
+ cp = make_coda_node(&ctlfid, vfsp, VCHR);
coda_ctlvp = CTOV(cp);
/* Add vfs and rootvp to chain of vfs hanging off mntinfo */
OpenPOWER on IntegriCloud