From: Eric Dumazet Subject: Re: [PATCH net] tcp: allow MSG_ZEROCOPY transmission also in CLOSE_WAIT state Date: Fri, 11 Jan 2019 02:45:44 -0800 Message-ID: <54b9c0e0-88c8-fff8-cfa3-4f35a4dab4dc@gmail.com> References: <20190110194033.92255-1-willemdebruijn.kernel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: netdev , David Miller , Eric Dumazet , Willem de Bruijn , Marek Majkowski , Yuchung Cheng , Neal Cardwell , Alexey Kodanev To: Soheil Hassas Yeganeh , Willem de Bruijn Return-path: Received: from mail-wr1-f67.google.com ([209.85.221.67]:37388 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbfAKKpz (ORCPT ); Fri, 11 Jan 2019 05:45:55 -0500 Received: by mail-wr1-f67.google.com with SMTP id s12so14676838wrt.4 for ; Fri, 11 Jan 2019 02:45:54 -0800 (PST) In-Reply-To: Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 01/10/2019 11:45 AM, Soheil Hassas Yeganeh wrote: > On Thu, Jan 10, 2019 at 2:40 PM Willem de Bruijn > wrote: >> >> From: Willem de Bruijn >> >> TCP transmission with MSG_ZEROCOPY fails if the peer closes its end of >> the connection and so transitions this socket to CLOSE_WAIT state. >> >> Transmission in close wait state is acceptable. Other similar tests in >> the stack (e.g., in FastOpen) accept both states. Relax this test, too. >> >> Link: https://www.mail-archive.com/netdev@vger.kernel.org/msg276886.html >> Link: https://www.mail-archive.com/netdev@vger.kernel.org/msg227390.html >> Fixes: f214f915e7db ("tcp: enable MSG_ZEROCOPY") >> Reported-by: Marek Majkowski >> Signed-off-by: Willem de Bruijn >> CC: Yuchung Cheng >> CC: Neal Cardwell >> CC: Soheil Hassas Yeganeh >> CC: Alexey Kodanev > > Acked-by: Soheil Hassas Yeganeh > > Thank you for the fix! Reviewed-by: Eric Dumazet