1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00
freebsd/sys
Rick Macklem 1b09d9df3d Fix the server side krpc so that the kernel nfsd threads terminate.
Occationally the kernel nfsd threads would not terminate when a SIGKILL
was posted for the kernel process (called nfsd (slave)). When this occurred,
the thread associated with the process (called "ismaster") had returned from
svc_run_internal() and was sleeping waiting for the other threads to terminate.
The other threads (created by kthread_start()) were still in svc_run_internal()
handling NFS RPCs.
The only way this could occur is for the "ismaster" thread to return from
svc_run_internal() without having called svc_exit().
There was only one place in the code where this could happen and this patch
stops that from happening.
Since the problem is intermittent, I cannot be sure if this has fixed the
problem, but I have not seen an occurrence of the problem with this patch
applied.

Reviewed by:	kib
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D16087
2018-07-02 17:50:46 +00:00
..
amd64 Invalidate the mapping before updating its physical address. 2018-06-28 21:40:31 +00:00
arm [rpi] Add support for the second PWM channel 2018-07-02 01:30:33 +00:00
arm64 Add stub arm64 linuxulator VDSO ldscript 2018-06-28 20:36:21 +00:00
bsm
cam Fix setting RCA for MMC cards 2018-06-19 20:02:03 +00:00
cddl
compat Split kern_break from sys_break and use it in linuxulator 2018-06-27 14:45:13 +00:00
conf newvers.sh: avoid possibly invalid relative directory 2018-06-29 18:45:29 +00:00
contrib MFV: r335802 2018-06-29 23:48:30 +00:00
crypto aesni(4): Fix {de,en}crypt operations that allocated a buffer 2018-06-23 18:20:17 +00:00
ddb
dev Change the group and the permissions on /dev/acpi, to make "acpiconf" 2018-07-02 14:15:30 +00:00
dts Add spi-max-frequency properties to all spigen nodes. This is a required 2018-06-23 22:55:22 +00:00
fs Fix the pNFS server for a case where mirror level equals number of DSs. 2018-06-29 12:41:36 +00:00
gdb
geom
gnu
i386 Fix the Linux kernel version number calculation 2018-06-22 00:02:03 +00:00
isa
kern core(5): overwrite the oldest core dump 2018-07-01 17:28:46 +00:00
kgssapi
libkern Sync strlcpy with userland version, again 2018-06-21 17:35:13 +00:00
mips Support 2GB of memory on Malta systems with FreeBSD/mips. 2018-06-28 21:27:34 +00:00
modules pflog/pfsync: Fix module build with VIMAGE=yes 2018-07-01 18:09:16 +00:00
net pf: remove unused ioctls. 2018-07-01 01:16:03 +00:00
net80211
netgraph
netinet inpcb: don't gratuitously defer frees 2018-07-02 05:19:44 +00:00
netinet6 in6_pcblookup_hash: validate inp for liveness 2018-07-01 01:01:59 +00:00
netipsec r335795 build fix: make static functions static 2018-06-29 14:51:36 +00:00
netpfil pf: remove unused ioctls. 2018-07-01 01:16:03 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc Support multiple OPAL consoles, and don't crash if uart is not stdout 2018-06-29 19:35:25 +00:00
riscv Include UART driver since it is now provided in QEMU. 2018-06-29 10:55:42 +00:00
rpc Fix the server side krpc so that the kernel nfsd threads terminate. 2018-07-02 17:50:46 +00:00
security Fix build breakage in veriexec for 32-bit architectures. 2018-06-20 06:54:38 +00:00
sparc64
sys inpcb: don't gratuitously defer frees 2018-07-02 05:19:44 +00:00
teken
tests
tools
ufs Create um_flags in the ufsmount structure to hold flags for a UFS filesystem. 2018-06-29 22:24:41 +00:00
vm Introduce vm_phys_enq_range(), and call it in vm_phys_alloc_npages() 2018-07-02 17:18:46 +00:00
x86 xen: obtain vCPU ID from CPUID 2018-06-26 15:00:54 +00:00
xdr
xen
Makefile