cvs commit: src/sys/fs/coda coda_vfsops.c coda_vnops.c
rwatson at FreeBSD.org
Fri Jul 20 11:14:52 UTC 2007
rwatson 2007-07-20 11:14:51 UTC
FreeBSD src repository
sys/fs/coda coda_vfsops.c coda_vnops.c
Make sure we release the control vnode in Coda:
We allocate coda_ctlvp when /coda is mounted, but never release it.
During the unmount this vnode was marked as UNMOUNTING and when venus
is started a second time the system would hang, possibly waiting for
the old vnode to disappear.
So now we call vrele on the control vnode when file system is unmounted
to drop the reference we got during the mount. I'm pretty sure it is
also necessary to not skip the handling in coda_inactive for the control
vnode, it seems like that is the place we actually get rid of the vnode
once the refcount has dropped to 0.
Submitted by: Jan Harkes <jaharkes at cs dot cmu dot edu>
Approved by: re (kensmith)
Revision Changes Path
1.67 +1 -0 src/sys/fs/coda/coda_vfsops.c
1.76 +0 -5 src/sys/fs/coda/coda_vnops.c
More information about the cvs-src