On Tue, Feb 10, 2026 at 10:09:52AM -0700, Allison Henderson wrote:
> Commit 3db6e0d172c9 ("rds: use RCU to synchronize work-enqueue with
> connection teardown") modifies rds_sendmsg to avoid enqueueing work
> while a tear down is in progress. However, it also changed the return
> value of rds_sendmsg to that of rds_send_xmit instead of the
> payload_len. This means the user may incorrectly receive errno values
> when it should have simply received a payload of 0 while the peer
> attempts a reconnections.  So this patch corrects the teardown handling
> code to only use the out error path in that case, thus restoring the
> original payload_len return value.
> 
> Fixes: 3db6e0d172c9 ("rds: use RCU to synchronize work-enqueue with 
> connection teardown")
> Signed-off-by: Allison Henderson <[email protected]>
> 
> ---
> Changes in v2:
> - Rebased on net/main to fix apply failure in v1

Reviewed-by: Simon Horman <[email protected]>


Reply via email to