NetBSD/sys/nfs
manu 45ab7f236a Fix soft NFS force unmount
For many reasons, forcibly unmounting a soft NFS mount could hang forever.
Here are the fixes:
- Introduce decents timeouts in operation that awaited NFS server reply.
- On timeout, fails operations on soft mounts with EIO.
- Introduce NFSMNT_DISMNTFORCE to let the filesystem know that a
  force unmount is ongoing. This causes timeouts to be reduced and
  prevents the NFS client to attempt reconnecting to the NFS server.

Also fix a race condition where some asynchronous I/O could reference
destroyed mount structures. We fix this by awaiting asynchronous I/O
to drain before proceeding.

Reviewed by Chuck Silvers.
2015-07-15 03:28:55 +00:00
..
Makefile
files.nfs
krpc.h
krpc_subr.c change nfs_boot_sendrecv to take sockaddr_in * instead of mbuf * 2015-05-21 02:04:22 +00:00
nfs.h Nix LEASE_READ/LEASE_WRITE from <sys/vnode.h>. 2015-04-20 13:12:24 +00:00
nfs_bio.c Fix soft NFS force unmount 2015-07-15 03:28:55 +00:00
nfs_boot.c change nfs_boot_sendrecv to take sockaddr_in * instead of mbuf * 2015-05-21 02:04:22 +00:00
nfs_bootdhcp.c change nfs_boot_sendrecv to take sockaddr_in * instead of mbuf * 2015-05-21 02:04:22 +00:00
nfs_bootparam.c
nfs_bootstatic.c
nfs_clntsocket.c Fix soft NFS force unmount 2015-07-15 03:28:55 +00:00
nfs_clntsubs.c
nfs_export.c
nfs_iod.c Fix soft NFS force unmount 2015-07-15 03:28:55 +00:00
nfs_kq.c
nfs_node.c
nfs_serv.c Cull unused INRENAME and INRELOOKUP from callers. 2015-04-21 03:19:03 +00:00
nfs_socket.c Fix soft NFS force unmount 2015-07-15 03:28:55 +00:00
nfs_srvcache.c
nfs_srvsocket.c
nfs_srvsubs.c
nfs_subs.c
nfs_syscalls.c add netbsd32 support for nfssvc(2). we do this by defining 5 copyin/out 2015-06-22 10:35:00 +00:00
nfs_var.h Fix soft NFS force unmount 2015-07-15 03:28:55 +00:00
nfs_vfsops.c Fix soft NFS force unmount 2015-07-15 03:28:55 +00:00
nfs_vnops.c in nfs_writerpc(), avoid a signed/unsigned problem in computing the 2015-05-14 17:35:54 +00:00
nfsdiskless.h change nfs_boot_sendrecv to take sockaddr_in * instead of mbuf * 2015-05-21 02:04:22 +00:00
nfsm_subs.h
nfsmount.h Fix soft NFS force unmount 2015-07-15 03:28:55 +00:00
nfsnode.h
nfsproto.h
nfsrtt.h
nfsrvcache.h
rpcv2.h
xdr_subs.h