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

看板DFBSD_commit作者時間16年前 (2009/08/10 14:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1AVxxdXq (DFBSD_commit)