NFS - Cleanly unmount NFS on halt/shutdown/reboot
commitd9adbeafd8f8b1c2417a208874b621fe3a8fdb26
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 10 Aug 2009 06:17:32 +0000 (9 23:17 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 10 Aug 2009 06:17:32 +0000 (9 23:17 -0700)
treecbb1e23fcf4ea0c790e16d45c8d817598496d0a2
parent1c0fe2ad042353c419ebe87bfcd7266612b25597
NFS - Cleanly unmount NFS on halt/shutdown/reboot

* Abort any in-transit RPCs, disallow new RPCs, and disconnect the
  socket (aka if TCP) when doing a forced NFS unmount.

  This fixes left over TCP sockets when doing a normal halt/shutdown/reboot.

* Related user processes will also unblock, but the unmount code will
  still block trying to look up the path and this commit does not quite
  solve that problem.
sys/kern/vfs_mount.c
sys/vfs/nfs/nfs.h
sys/vfs/nfs/nfs_socket.c
sys/vfs/nfs/nfs_vfsops.c