Re: [PATCH] NFS4: Apply delay_retrans to async operations
From: Benjamin Coddington
Date: Wed Oct 08 2025 - 15:03:05 EST
On 7 Oct 2025, at 17:22, Joshua Watt wrote:
> From: Joshua Watt <jpewhacker@xxxxxxxxx>
>
> The setting of delay_retrans is applied to synchronous RPC operations
> because the retransmit count is stored in same struct nfs4_exception
> that is passed each time an error is checked. However, for asynchronous
> operations (READ, WRITE, LOCKU, CLOSE, DELEGRETURN), a new struct
> nfs4_exception is made on the stack each time the task callback is
> invoked. This means that the retransmit count is always zero and thus
> delay_retrans never takes effect.
>
> Apply delay_retrans to these operations by tracking and updating their
> retransmit count.
Looks correct. I wish we didn't have to assign these values back and forth,
but I don't see a better way to fix this.
Reviewed-by: Benjamin Coddington <bcodding@xxxxxxxxxx>
Ben