linux-stable/include/linux/sunrpc
NeilBrown 18e4cf9155 nfsd: Simplify code around svc_exit_thread() call in nfsd()
Previously a thread could exit asynchronously (due to a signal) so some
care was needed to hold nfsd_mutex over the last svc_put() call.  Now a
thread can only exit when svc_set_num_threads() is called, and this is
always called under nfsd_mutex.  So no care is needed.

Not only is the mutex held when a thread exits now, but the svc refcount
is elevated, so the svc_put() in svc_exit_thread() will never be a final
put, so the mutex isn't even needed at this point in the code.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2023-08-29 17:45:22 -04:00
..
addr.h
auth.h SUNRPC: Add RPC client support for the RPC_AUTH_TLS auth flavor 2023-06-19 12:18:36 -04:00
auth_gss.h
bc_xprt.h
cache.h
clnt.h NFS: add sysfs shutdown knob 2023-06-19 15:08:12 -04:00
debug.h
gss_api.h
gss_asn1.h
gss_err.h
gss_krb5.h
metrics.h
msg_prot.h
rpc_pipe_fs.h
rpc_rdma.h
rpc_rdma_cid.h
sched.h
stats.h
svc.h nfsd: Simplify code around svc_exit_thread() call in nfsd() 2023-08-29 17:45:22 -04:00
svc_rdma.h svcrdma: Revert 2a1e4f21d8 ("svcrdma: Normalize Send page handling") 2023-06-12 12:16:36 -04:00
svc_rdma_pcl.h
svc_xprt.h SUNRPC: always free ctxt when freeing deferred request 2023-05-14 15:55:02 -04:00
svcauth.h sunrpc: Remove unused extern declarations 2023-08-29 17:45:22 -04:00
svcauth_gss.h
svcsock.h SUNRPC: Revert e0a912e8dd 2023-08-29 17:45:22 -04:00
timer.h
types.h
xdr.h SUNRPC: Convert svc_tcp_sendmsg to use bio_vecs directly 2023-08-29 17:45:22 -04:00
xprt.h SUNRPC: Add a TCP-with-TLS RPC transport class 2023-06-19 12:28:10 -04:00
xprtmultipath.h
xprtrdma.h
xprtsock.h SUNRPC: Add a TCP-with-TLS RPC transport class 2023-06-19 12:28:10 -04:00