From: Soheil Hassas Yeganeh <[email protected]> Date: Tue, 6 Mar 2018 17:15:12 -0500
> From: Soheil Hassas Yeganeh <[email protected]> > > 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 <[email protected]> > Signed-off-by: Neal Cardwell <[email protected]> > Reviewed-by: Eric Dumazet <[email protected]> > Signed-off-by: Yuchung Cheng <[email protected]> Applied and queued up for -stable, thanks.
