]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Signalled ASYNC tasks need to exit
authorChuck Lever <chuck.lever@oracle.com>
Sat, 9 May 2020 18:07:13 +0000 (14:07 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 11 May 2020 18:06:50 +0000 (14:06 -0400)
commitc142e26fed3812789a9746de6c5e601ba7d2041c
treeeecb41fcd00d2be1aae346e4683d54882a904186
parentc3c1d47945ea0878fc02ba649066664f967c4797
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: Chuck Lever <chuck.lever@oracle.com>
Fixes: cd08d3bb54f8 ("SUNRPC: Fix up task signalling")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/clnt.c