cvs commit: src/sys/sys mount.h src/sys/kern vfs_mount.c vfs_subr.c

Jeff Roberson jeff at
Mon Feb 6 02:20:12 PST 2006

jeff        2006-02-06 10:19:50 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              mount.h 
    sys/kern             vfs_mount.c vfs_subr.c 
   - Add a ref count to the mount structure.  Sleep for up to 3 seconds in
     vfs_mount_destroy waiting for this ref to hit 0.  We don't print an
     error if we are rebooting as the root mount always retains some refernces
     by init proc.
   - Acquire a mnt ref for every vnode allocated to a mount point.  Drop this
     ref only once vdestroy() has been called and the mount has been freed.
   - No longer NULL the v_mount pointer in delmntque() so that we may release
     the ref after vgone() has been called.  This allows us to guarantee
     that the mount point structure will be valid until the last vnode has
     lost its last ref.
   - Fix a few places that rely on checking v_mount to detect recycling.
  Sponsored by:   Isilon Systems, Inc.
  MFC After:      1 week
  Revision  Changes    Path
  1.216     +32 -2     src/sys/kern/vfs_mount.c
  1.658     +8 -6      src/sys/kern/vfs_subr.c
  1.205     +21 -7     src/sys/sys/mount.h

More information about the cvs-src mailing list