From: Soheil Hassas Yeganeh <redacted>
Date: Tue, 6 Mar 2018 17:15:12 -0500
From: Soheil Hassas Yeganeh <redacted>
When the connection is aborted, there is no point in
keeping the packets on the write queue until the connection
is closed.
Similar to a27fd7a8ed38 ('tcp: purge write queue upon RST'),
this is essential for a correct MSG_ZEROCOPY implementation,
because userspace cannot call close(fd) before receiving
zerocopy signals even when the connection is aborted.
Fixes: f214f915e7db ("tcp: enable MSG_ZEROCOPY")
Signed-off-by: Soheil Hassas Yeganeh <redacted>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Reviewed-by: Eric Dumazet <redacted>
Signed-off-by: Yuchung Cheng <redacted>
Applied and queued up for -stable, thanks.