linux/fs/nfs
NeilBrown 3903902401 nfsd: don't allow nfsd threads to be signalled.
The original implementation of nfsd used signals to stop threads during
shutdown.
In Linux 2.3.46pre5 nfsd gained the ability to shutdown threads
internally it if was asked to run "0" threads.  After this user-space
transitioned to using "rpc.nfsd 0" to stop nfsd and sending signals to
threads was no longer an important part of the API.

In commit 3ebdbe5203 ("SUNRPC: discard svo_setup and rename
svc_set_num_threads_sync()") (v5.17-rc1~75^2~41) we finally removed the
use of signals for stopping threads, using kthread_stop() instead.

This patch makes the "obvious" next step and removes the ability to
signal nfsd threads - or any svc threads.  nfsd stops allowing signals
and we don't check for their delivery any more.

This will allow for some simplification in later patches.

A change worth noting is in nfsd4_ssc_setup_dul().  There was previously
a signal_pending() check which would only succeed when the thread was
being shut down.  It should really have tested kthread_should_stop() as
well.  Now it just does the latter, not the former.

Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2023-08-29 17:45:22 -04:00
..
blocklayout block: replace fmode_t with a block-specific type for block open flags 2023-06-12 08:04:05 -06:00
filelayout
flexfilelayout
cache_lib.c
cache_lib.h
callback.c nfsd: don't allow nfsd threads to be signalled. 2023-08-29 17:45:22 -04:00
callback.h
callback_proc.c
callback_xdr.c
client.c NFS: Don't cleanup sysfs superblock entry if uninitialized 2023-06-29 14:25:35 -04:00
delegation.c
delegation.h
dir.c NFS: Convert kmap_atomic() to kmap_local_folio() 2023-05-19 16:50:05 -04:00
direct.c NFS: Fix a use after free in nfs_direct_join_group() 2023-08-17 09:30:38 -04:00
dns_resolve.c
dns_resolve.h
export.c nfsd: allow reaping files still under writeback 2023-04-26 09:04:59 -04:00
file.c - Yosry Ahmed brought back some cgroup v1 stats in OOM logs. 2023-06-28 10:28:11 -07:00
fs_context.c NFS: Add an "xprtsec=" NFS mount option 2023-06-19 12:30:17 -04:00
fscache.c NFS: set varaiable nfs_netfs_debug_id storage-class-specifier to static 2023-04-21 16:36:21 -04:00
fscache.h NFS: Convert buffered read paths to use netfs when fscache is enabled 2023-04-11 13:08:26 -04:00
getroot.c
inode.c nfs: don't report STATX_BTIME in ->getattr 2023-06-19 17:16:43 -04:00
internal.h NFS client updates for Linux 6.5 2023-07-01 14:38:25 -07:00
io.c
iostat.h NFS: Remove all NFSIOS_FSCACHE counters due to conversion to netfs API 2023-04-11 13:08:26 -04:00
Kconfig NFS: Configure support for netfs when NFS fscache is configured 2023-04-11 13:00:02 -04:00
Makefile
mount_clnt.c
namespace.c
netns.h
nfs.h
nfs2super.c
nfs2xdr.c
nfs3_fs.h
nfs3acl.c Mainly singleton patches all over the place. Series of note are: 2023-04-27 19:57:00 -07:00
nfs3client.c NFS: add a sysfs link to the acl rpc_client 2023-06-19 15:06:40 -04:00
nfs3proc.c
nfs3super.c
nfs3xdr.c
nfs4_fs.h
nfs4client.c NFS: Add sysfs links to sunrpc clients for nfs_clients 2023-06-19 15:04:13 -04:00
nfs4file.c nfs: Provide a splice-read wrapper 2023-05-24 08:42:16 -06:00
nfs4getroot.c
nfs4idmap.c
nfs4idmap.h
nfs4namespace.c
nfs4proc.c NFSv4: fix out path in __nfs4_get_acl_uncached 2023-08-19 10:26:29 -04:00
nfs4renewd.c
nfs4session.c
nfs4session.h
nfs4state.c NFSv4: Clean up some shutdown loops 2023-06-19 15:09:25 -04:00
nfs4super.c
nfs4sysctl.c nfs: simplify two-level sysctl registration for nfs4_cb_sysctls 2023-04-13 11:49:35 -07:00
nfs4trace.c
nfs4trace.h
nfs4xdr.c
nfs42.h
nfs42proc.c NFSv4.2: fix error handling in nfs42_proc_getxattr 2023-08-19 10:26:29 -04:00
nfs42xattr.c NFSv4.2: fix wrong shrinker_id 2023-06-19 15:10:45 -04:00
nfs42xdr.c NFSv4.2: SETXATTR should update ctime 2023-06-19 12:10:48 -04:00
nfsroot.c NFS: Prefer strscpy over strlcpy calls 2023-05-22 12:34:41 -07:00
nfstrace.c
nfstrace.h NFS: Remove fscache specific trace points and NFS_INO_FSCACHE bit 2023-04-11 13:08:27 -04:00
pagelist.c NFS: Convert buffered read paths to use netfs when fscache is enabled 2023-04-11 13:08:26 -04:00
pnfs.c
pnfs.h
pnfs_dev.c
pnfs_nfs.c
proc.c
read.c NFS: Convert buffered read paths to use netfs when fscache is enabled 2023-04-11 13:08:26 -04:00
super.c NFS: add superblock sysfs entries 2023-06-19 15:03:48 -04:00
symlink.c
sysctl.c nfs: simplify two-level sysctl registration for nfs_cb_sysctls 2023-04-13 11:49:35 -07:00
sysfs.c NFS: Fix sysfs server name memory leak 2023-08-19 10:26:29 -04:00
sysfs.h NFS: Add sysfs links to sunrpc clients for nfs_clients 2023-06-19 15:04:13 -04:00
unlink.c
write.c