Date: Mon, 6 Feb 2006 10:19:50 +0000 (UTC) From: Jeff Roberson <jeff@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys mount.h src/sys/kern vfs_mount.c vfs_subr.c Message-ID: <200602061019.k16AJoe5032776@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Log:
- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602061019.k16AJoe5032776>
