DragonFly commits List (threaded) for 2009-08
DragonFly BSD
DragonFly commits List (threaded) for 2009-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 9 Aug 2009 23:21:58 -0700 (PDT)

commit d9adbeafd8f8b1c2417a208874b621fe3a8fdb26
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]