From: Chuck Lever Date: Sat, 1 Mar 2025 18:31:48 +0000 (-0500) Subject: NFSD: Shorten CB_OFFLOAD response to NFS4ERR_DELAY X-Git-Tag: v6.16-rc1~138^2~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=71aeab7bd9ae113e7550fd78a9e6ad99a700f8bc;p=thirdparty%2Fkernel%2Flinux.git NFSD: Shorten CB_OFFLOAD response to NFS4ERR_DELAY Try not to prolong the wait for completion of a COPY or COPY_NOTIFY operation. Reviewed-by: Jeff Layton Signed-off-by: Chuck Lever --- diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index fc19886cf9aaf..f8b2a57050122 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -1712,7 +1712,7 @@ static int nfsd4_cb_offload_done(struct nfsd4_callback *cb, switch (task->tk_status) { case -NFS4ERR_DELAY: if (cbo->co_retries--) { - rpc_delay(task, 1 * HZ); + rpc_delay(task, HZ / 5); return 0; } }