git: NFS - Cleanly unmount NFS on halt/shutdown/reboot

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Aug 9 23:23:45 PDT 2009


commit d9adbeafd8f8b1c2417a208874b621fe3a8fdb26
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Aug 9 23:17:32 2009 -0700

    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.

Summary of changes:
 sys/kern/vfs_mount.c     |   11 ++++++++---
 sys/vfs/nfs/nfs.h        |    2 +-
 sys/vfs/nfs/nfs_socket.c |   10 ++++++++++
 sys/vfs/nfs/nfs_vfsops.c |   25 +++++++++++++++++++------
 4 files changed, 38 insertions(+), 10 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d9adbeafd8f8b1c2417a208874b621fe3a8fdb26


-- 
DragonFly BSD source repository





More information about the Commits mailing list