Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jul 2007 11:14:51 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/fs/coda coda_vfsops.c coda_vnops.c
Message-ID:  <200707201114.l6KBEpiA055784@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2007-07-20 11:14:51 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/coda          coda_vfsops.c coda_vnops.c 
  Log:
  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707201114.l6KBEpiA055784>