[PATCH Coda 4/5] Avoid a panic in insmntque when we pass a NULL mount

Jan Harkes jaharkes at cs.cmu.edu
Tue Jul 10 18:43:11 UTC 2007


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.
---
 coda_vfsops.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/coda_vfsops.c b/coda_vfsops.c
index 68fdafe..07d0ad1 100644
--- a/coda_vfsops.c
+++ b/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 */
-- 
1.5.2.1



More information about the freebsd-fs mailing list