]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nfsd: only check RPC_SIGNALLED() when restarting rpc_task
authorJeff Layton <jlayton@kernel.org>
Sun, 9 Feb 2025 12:31:25 +0000 (07:31 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 10 Mar 2025 13:11:02 +0000 (09:11 -0400)
commitf049911b5b98feceb949430f33fb5d2c9c55833c
tree680213aca05470f663262fd087ab4744efc48d6e
parent43fa8905db08a39d4d0a709f6f3294037c4db425
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>
fs/nfsd/nfs4callback.c