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:
parent
74d326ada8
commit
0e3ce855cc
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user