linux-stable/fs/lockd
NeilBrown fa341560ca SUNRPC: change how svc threads are asked to exit.
svc threads are currently stopped using kthread_stop().  This requires
identifying a specific thread.  However we don't care which thread
stops, just as long as one does.

So instead, set a flag in the svc_pool to say that a thread needs to
die, and have each thread check this flag instead of calling
kthread_should_stop().  The first thread to find and clear this flag
then moves towards exiting.

This removes an explicit dependency on sp_all_threads which will make a
future patch simpler.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2023-10-16 12:44:04 -04:00
..
Makefile lockd: add some client-side tracepoints 2023-04-26 09:05:00 -04:00
clnt4xdr.c lockd: set file_lock start and end when decoding nlm4 testargs 2023-03-14 14:00:55 -04:00
clntlock.c NFS: add a sysfs link to the lockd rpc_client 2023-06-19 15:06:07 -04:00
clntproc.c lockd: add some client-side tracepoints 2023-04-26 09:05:00 -04:00
clntxdr.c
host.c lockd: purge resources held on behalf of nlm clients when shutting down 2023-04-26 09:04:59 -04:00
mon.c fs: lockd: avoid possible wrong NULL parameter 2023-08-29 17:45:22 -04:00
netns.h filelock: move file locking definitions to separate header file 2023-01-11 06:52:32 -05:00
procfs.c
procfs.h
svc.c SUNRPC: change how svc threads are asked to exit. 2023-10-16 12:44:04 -04:00
svc4proc.c lockd: set missing fl_flags field when retrieving args 2022-12-10 11:01:11 -05:00
svclock.c SUNRPC: change how svc threads are asked to exit. 2023-10-16 12:44:04 -04:00
svcproc.c lockd: set missing fl_flags field when retrieving args 2022-12-10 11:01:11 -05:00
svcshare.c
svcsubs.c NFSD 6.2 Release Notes 2022-12-12 20:54:39 -08:00
svcxdr.h
trace.c lockd: add some client-side tracepoints 2023-04-26 09:05:00 -04:00
trace.h lockd: add some client-side tracepoints 2023-04-26 09:05:00 -04:00
xdr.c SUNRPC: Change return value type of .pc_encode 2021-10-13 11:34:49 -04:00
xdr4.c lockd: set file_lock start and end when decoding nlm4 testargs 2023-03-14 14:00:55 -04:00