sst-linux/include/linux/sunrpc
Trond Myklebust 65344e7363 SUNRPC: Prevent looping due to rpc_signal_task() races
[ Upstream commit 5bbd6e863b15a85221e49b9bdb2d5d8f0bb91f3d ]

If rpc_signal_task() is called while a task is in an rpc_call_done()
callback function, and the latter calls rpc_restart_call(), the task can
end up looping due to the RPC_TASK_SIGNALLED flag being set without the
tk_rpc_status being set.
Removing the redundant mechanism for signalling the task fixes the
looping behaviour.

Reported-by: Li Lingfeng <lilingfeng3@huawei.com>
Fixes: 39494194f9 ("SUNRPC: Fix races with rpc_killall_tasks()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-03-07 16:56:42 +01:00
..
addr.h
auth_gss.h
auth.h
bc_xprt.h
cache.h
clnt.h
debug.h
gss_api.h
gss_asn1.h
gss_err.h
gss_krb5_enctypes.h
gss_krb5.h
metrics.h
msg_prot.h
rpc_pipe_fs.h
rpc_rdma_cid.h
rpc_rdma.h
sched.h SUNRPC: Prevent looping due to rpc_signal_task() races 2025-03-07 16:56:42 +01:00
stats.h
svc_rdma_pcl.h
svc_rdma.h
svc_xprt.h
svc.h nfsd: Simplify code around svc_exit_thread() call in nfsd() 2024-08-29 17:30:52 +02:00
svcauth_gss.h
svcauth.h
svcsock.h
timer.h
types.h
xdr.h
xprt.h
xprtmultipath.h
xprtrdma.h
xprtsock.h