freebsd-dev/sys/fs
Rick Macklem a0962bf8bc When the nfsd threads are terminated, the NFSv4 server state
(opens, locks, etc) is retained, which I believe is correct behaviour.
However, for NFSv4.1, the server also retained a reference to the xprt
(RPC transport socket structure) for the backchannel. This caused
svcpool_destroy() to not call SVC_DESTROY() for the xprt and allowed
a socket upcall to occur after the mutexes in the svcpool were destroyed,
causing a crash.
This patch fixes the code so that the backchannel xprt structure is
dereferenced just before svcpool_destroy() is called, so the code
does do an SVC_DESTROY() on the xprt, which shuts down the socket upcall.

Tested by:	g_amanakis@yahoo.com
PR:		204340
MFC after:	2 weeks
2015-11-21 23:55:46 +00:00
..
autofs
cd9660
cuse
deadfs
devfs Make it possible to forcibly unmount devfs. 2015-08-24 14:04:44 +00:00
ext2fs - Remove some dead code copied from ffs. 2015-07-29 03:06:08 +00:00
fdescfs fd: make 'rights' a manadatory argument to fget* functions 2015-07-05 19:05:16 +00:00
fifofs Ensure that when a blockable open of fifo returns success, a valid 2015-09-20 21:18:33 +00:00
fuse File systems that do not use the buffer cache (such as ZFS) must 2015-04-15 20:16:31 +00:00
msdosfs File systems that do not use the buffer cache (such as ZFS) must 2015-04-15 20:16:31 +00:00
nandfs File systems that do not use the buffer cache (such as ZFS) must 2015-04-15 20:16:31 +00:00
nfs When the nfsd threads are terminated, the NFSv4 server state 2015-11-21 23:55:46 +00:00
nfsclient Revert r283330 since it broke directory caching in the client. 2015-11-21 00:15:41 +00:00
nfsserver When the nfsd threads are terminated, the NFSv4 server state 2015-11-21 23:55:46 +00:00
nullfs Check suspendability on the mountpoint returned by VOP_GETWRITEMOUNT. 2015-07-05 22:37:33 +00:00
procfs - Consistently use PROC_ASSERT_HELD() to verify that a process' hold count 2015-11-08 01:38:56 +00:00
pseudofs Hide vfs.pfs.trace variable if it is not used. 2015-05-24 18:11:22 +00:00
smbfs
tmpfs In tmpfs_chtimes(), remove checks on the nanosecond level when 2015-07-26 08:33:46 +00:00
udf
unionfs Check suspendability on the mountpoint returned by VOP_GETWRITEMOUNT. 2015-07-05 22:37:33 +00:00