freebsd-dev/sys/nfs
iedowse 14dd931aa7 Change the second argument of vflush() to an integer that specifies
the number of references on the filesystem root vnode to be both
expected and released. Many filesystems hold an extra reference on
the filesystem root vnode, which must be accounted for when
determining if the filesystem is busy and then released if it isn't
busy. The old `skipvp' approach required individual filesystem
xxx_unmount functions to re-implement much of vflush()'s logic to
deal with the root vnode.

All 9 filesystems that hold an extra reference on the root vnode
got the logic wrong in the case of forced unmounts, so `umount -f'
would always fail if there were any extra root vnode references.
Fix this issue centrally in vflush(), now that we can.

This commit also fixes a vnode reference leak in devfs, which could
result in idle devfs filesystems that refuse to unmount.

Reviewed by:	phk, bp
2001-05-16 18:04:37 +00:00
..
bootp_subr.c Enable use of DHCP extensions. 2001-02-02 02:35:40 +00:00
krpc_subr.c * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT. 2000-12-21 21:44:31 +00:00
krpc.h
nfs_bio.c Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
nfs_common.c Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
nfs_common.h * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT. 2000-12-21 21:44:31 +00:00
nfs_lock.c Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
nfs_lock.h Implement client side NFS locks. 2001-04-17 20:45:23 +00:00
nfs_node.c Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
nfs_nqlease.c Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
nfs_serv.c Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
nfs_socket.c Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
nfs_srvcache.c Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
nfs_subs.c Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
nfs_syscalls.c Revert consequences of changes to mount.h, part 2. 2001-04-29 02:45:39 +00:00
nfs_vfsops.c Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
nfs_vnops.c Add a vop_stdbmap(), and make it part of the default vop vector. 2001-04-29 11:48:41 +00:00
nfs.h Implement client side NFS locks. 2001-04-17 20:45:23 +00:00
nfsdiskless.h
nfsm_subs.h * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT. 2000-12-21 21:44:31 +00:00
nfsmount.h In preparation for deprecating CIRCLEQ macros in favor of TAILQ 2000-11-14 08:00:39 +00:00
nfsnode.h In preparation for deprecating CIRCLEQ macros in favor of TAILQ 2000-11-14 08:00:39 +00:00
nfsproto.h
nfsrtt.h
nfsrvcache.h Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
nfsv2.h
nlminfo.h Implement client side NFS locks. 2001-04-17 20:45:23 +00:00
nqnfs.h In preparation for deprecating CIRCLEQ macros in favor of TAILQ 2000-11-14 08:00:39 +00:00
rpcv2.h
xdr_subs.h