Date: Tue, 10 Jul 2007 14:02:00 -0400 From: Jan Harkes <jaharkes@cs.cmu.edu> To: freebsd-fs@freebsd.org Cc: Jan Harkes <jaharkes@cs.cmu.edu> Subject: [PATCH Coda 4/5] Avoid a panic in insmntque when we pass a NULL mount Message-ID: <11840905213288-git-send-email-jaharkes@cs.cmu.edu> In-Reply-To: <2c84c1de0707060800t21f3f993mfb53f7975a881ed4@mail.gmail.com> References: <2c84c1de0707060800t21f3f993mfb53f7975a881ed4@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11840905213288-git-send-email-jaharkes>
