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)
This commit is contained in:
rwatson 2007-07-11 21:33:46 +00:00
parent 4f942d92aa
commit 1c2785e3fe
2 changed files with 2 additions and 14 deletions

View File

@ -183,13 +183,7 @@ coda_mount(struct mount *vfsp, struct thread *td)
rootvp = CTOV(cp); rootvp = CTOV(cp);
rootvp->v_vflag |= VV_ROOT; rootvp->v_vflag |= VV_ROOT;
/* cp = make_coda_node(&ctlfid, vfsp, VCHR); 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);
coda_ctlvp = CTOV(cp); coda_ctlvp = CTOV(cp);
/* Add vfs and rootvp to chain of vfs hanging off mntinfo */ /* Add vfs and rootvp to chain of vfs hanging off mntinfo */

View File

@ -183,13 +183,7 @@ coda_mount(struct mount *vfsp, struct thread *td)
rootvp = CTOV(cp); rootvp = CTOV(cp);
rootvp->v_vflag |= VV_ROOT; rootvp->v_vflag |= VV_ROOT;
/* cp = make_coda_node(&ctlfid, vfsp, VCHR); 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);
coda_ctlvp = CTOV(cp); coda_ctlvp = CTOV(cp);
/* Add vfs and rootvp to chain of vfs hanging off mntinfo */ /* Add vfs and rootvp to chain of vfs hanging off mntinfo */