diff options
author | Jeff Layton <jlayton@kernel.org> | 2025-02-09 15:31:25 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2025-03-10 16:11:02 +0300 |
commit | f049911b5b98feceb949430f33fb5d2c9c55833c (patch) | |
tree | 680213aca05470f663262fd087ab4744efc48d6e /rust/helpers/helpers.c | |
parent | 43fa8905db08a39d4d0a709f6f3294037c4db425 (diff) | |
download | linux-f049911b5b98feceb949430f33fb5d2c9c55833c.tar.xz |
nfsd: only check RPC_SIGNALLED() when restarting rpc_task
nfsd4_cb_sequence_done() currently checks RPC_SIGNALLED() when
processing the compound and releasing the slot. If RPC_SIGNALLED()
returns true, then that means that the client is going to be torn down.
Don't check RPC_SIGNALLED() after processing a successful reply. Check
it only before restarting the rpc_task. If it returns true, then requeue
the callback instead of restarting the task.
Also, handle rpc_restart_call() and rpc_restart_call_prepare() failures
correctly, by requeueing the callback.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions