From: Soheil Hassas Yeganeh <soheil.k...@gmail.com> Date: Tue, 6 Mar 2018 17:15:12 -0500
> From: Soheil Hassas Yeganeh <soh...@google.com> > > 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 <soh...@google.com> > Signed-off-by: Neal Cardwell <ncardw...@google.com> > Reviewed-by: Eric Dumazet <eduma...@google.com> > Signed-off-by: Yuchung Cheng <ych...@google.com> Applied and queued up for -stable, thanks.