Commit ce99aa62 authored by Chuck Lever's avatar Chuck Lever Committed by Trond Myklebust

SUNRPC: Signalled ASYNC tasks need to exit

Ensure that signalled ASYNC rpc_tasks exit immediately instead of
spinning until a timeout (or forever).

To avoid checking for the signal flag on every scheduler iteration,
the check is instead introduced in the client's finite state
machine.
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Fixes: ae67bd38 ("SUNRPC: Fix up task signalling")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 29fe8399
......@@ -2433,6 +2433,11 @@ rpc_check_timeout(struct rpc_task *task)
{
struct rpc_clnt *clnt = task->tk_client;
if (RPC_SIGNALLED(task)) {
rpc_call_rpcerror(task, -ERESTARTSYS);
return;
}
if (xprt_adjust_timeout(task->tk_rqstp) == 0)
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment