Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp277915pxm; Wed, 2 Mar 2022 15:14:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuqTDNrRZh6b6Dtd8xRqPeooOgtL9c17ek44V3mBuHnE/dr0DZpyL7h0AvywE5jhybpjog X-Received: by 2002:a63:ef0a:0:b0:378:d782:2e73 with SMTP id u10-20020a63ef0a000000b00378d7822e73mr10784868pgh.455.1646262871803; Wed, 02 Mar 2022 15:14:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646262871; cv=none; d=google.com; s=arc-20160816; b=nkxrKJaK5rfFLFG9ydysm2vNDDXJ6faz/s21bfc3A/JT147lnEJFi336jHD9TTL6QM Mc6+ZrxMurMk5rEl7RP+9UZTP9hrDA8NEyYPOxi9i/gBHrOwE+k1ORXfhjMS40tYdJxz XY7f0wm89oqVrC2IWh/60Y07cic5SxUoWybAzaxS2LKoS6B70X6jOZLzZ3gKocwT0ItE fZWrvQ9NmuxW8Lf+ClyyyjwkayW6ZaiKKry4rocA6qoOdo1++cP6h58zwbVve7phHztL gwLI9cACYm/a+ed2dHhDURiLbB9uqWsNe9HElxP6FBtGCKoH/i3MU7AXGYyY9g2MITly PhvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=iS/aNWtnH9a4d9rd64d/sRAR+b/oxfaR3TCQMzKUaew=; b=cjDwUlm8gGc1811oNHW/iL1Qsg5yIYWkVTOI/0dyuo4cIsgZDPXMXqJXYdX4wLR3/K W4jA+CYQob3wXHGhofoB2l7KcSmqWL/bi9UogpAgIKg2xa7tQ8nJoUW4CdiaW9CfhdhB iDZWR6z5qUlgvUuKZ3ncWOrI9Hw/xdtaahJMuTLvVlWnQ1m9Tn0jUkD96BY6GeN3lsnW Eq59Y4g5e7s/HEXrTwOe8n9PBzcg0n/UF7AxTOY5u5Ov3PtZGHn1ZuLLecdf/LYsBNzO 7EOFHG/D9WTQ5RdPV5+t8owUSpox+JTKXJW8dJDx2g/HVbhVFTc6wGP82/qITifPIpvF /MHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b15-20020a631b0f000000b0037865a72928si386005pgb.444.2022.03.02.15.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 15:14:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 20DAF237E4; Wed, 2 Mar 2022 14:53:00 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242509AbiCBWEq (ORCPT + 99 others); Wed, 2 Mar 2022 17:04:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238838AbiCBWEo (ORCPT ); Wed, 2 Mar 2022 17:04:44 -0500 Received: from cloud48395.mywhc.ca (cloud48395.mywhc.ca [173.209.37.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9100CC9920; Wed, 2 Mar 2022 14:04:00 -0800 (PST) Received: from [45.44.224.220] (port=57060 helo=[192.168.1.179]) by cloud48395.mywhc.ca with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nPX4h-000136-2O; Wed, 02 Mar 2022 17:03:59 -0500 Message-ID: Subject: Re: [PATCH v4 2/2] io_uring: Add support for napi_busy_poll From: Olivier Langlois To: Hao Xu , Jens Axboe , Pavel Begunkov Cc: io-uring , linux-kernel Date: Wed, 02 Mar 2022 17:03:58 -0500 In-Reply-To: <81a915d3-cf5f-a884-4649-704a5cf26835@linux.alibaba.com> References: <29bad95d-06f8-ea7c-29fe-81e52823c90a@linux.alibaba.com> <4f01857ca757ab4f0995420e6b1a6e3668a40da5.camel@trillion01.com> <4af380e8-796b-2dd6-4ebc-e40e7fa51ce1@linux.alibaba.com> <81a915d3-cf5f-a884-4649-704a5cf26835@linux.alibaba.com> Organization: Trillion01 Inc Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.42.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud48395.mywhc.ca X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - trillion01.com X-Get-Message-Sender-Via: cloud48395.mywhc.ca: authenticated_id: olivier@trillion01.com X-Authenticated-Sender: cloud48395.mywhc.ca: olivier@trillion01.com X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2022-03-02 at 14:38 +0800, Hao Xu wrote: > > > > > > > > > If that is what you suggest, what would this info do for the > > > caller? > > > > > > IMHO, it wouldn't help in any way... > > > > Hmm, I'm not sure, you're probably right based on that ENOMEM here > > shouldn't > > > > fail the arm poll, but we wanna do it, we can do something like > > what > > we do for > ???????????????????????????? ^---but if we wanna do it My position is that being able to perform busy poll is a nice to have feature if the necessary resources are available. If not the request will still be handled correctly so nothing special should be done in case of mem alloc problem. but fair enough, lets wait for Jens and Pavel to chime him if they would like to see something to be done here. Beside that, all I need to know is if napi_list needs to be protected in __io_sq_thread with regards to io worket threads to start working on a v5. I'll look into this question too...