From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46604C433E1 for ; Mon, 24 Aug 2020 23:16:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1D6A720656 for ; Mon, 24 Aug 2020 23:16:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728177AbgHXXQ5 (ORCPT ); Mon, 24 Aug 2020 19:16:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726090AbgHXXQ5 (ORCPT ); Mon, 24 Aug 2020 19:16:57 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C1F1C061574 for ; Mon, 24 Aug 2020 16:16:57 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 133E212924E80; Mon, 24 Aug 2020 16:00:10 -0700 (PDT) Date: Mon, 24 Aug 2020 16:16:55 -0700 (PDT) Message-Id: <20200824.161655.863789085344308332.davem@davemloft.net> To: luke.w.hsiao@gmail.com Cc: netdev@vger.kernel.org, axboe@kernel.dk, kuba@kernel.org, lukehsiao@google.com, arjunroy@google.com, soheil@google.com, edumazet@google.com Subject: Re: [PATCH net-next v3 2/2] io_uring: ignore POLLIN for recvmsg on MSG_ERRQUEUE From: David Miller In-Reply-To: <20200822044105.3097613-2-luke.w.hsiao@gmail.com> References: <0bc6cc65-e764-6fe0-9b0a-431015835770@kernel.dk> <20200822044105.3097613-1-luke.w.hsiao@gmail.com> <20200822044105.3097613-2-luke.w.hsiao@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 24 Aug 2020 16:00:10 -0700 (PDT) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Luke Hsiao Date: Fri, 21 Aug 2020 21:41:05 -0700 > From: Luke Hsiao > > Currently, io_uring's recvmsg subscribes to both POLLERR and POLLIN. In > the context of TCP tx zero-copy, this is inefficient since we are only > reading the error queue and not using recvmsg to read POLLIN responses. > > This patch was tested by using a simple sending program to call recvmsg > using io_uring with MSG_ERRQUEUE set and verifying with printks that the > POLLIN is correctly unset when the msg flags are MSG_ERRQUEUE. Again, selftests additions please. > Signed-off-by: Arjun Roy > Signed-off-by: Soheil Hassas Yeganeh > Acked-by: Eric Dumazet > Reviewed-by: Jens Axboe > Signed-off-by: Luke Hsiao Applied.