Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1368752iog; Tue, 14 Jun 2022 04:55:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3r0K+eEEYCtqEjEAmXPHDBRy1rQ/x8G3wMBwKIVi87LRQ91Rba+s1xSjkWQCLL41yF+OX X-Received: by 2002:a17:906:3e8e:b0:70f:9a81:8218 with SMTP id a14-20020a1709063e8e00b0070f9a818218mr3928389ejj.525.1655207718560; Tue, 14 Jun 2022 04:55:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655207718; cv=none; d=google.com; s=arc-20160816; b=04cp5jY012f/SgeS5/L14YwZCjY8K2SqeFxEiPfJQU5NpDio9VdAyKsk/Bpy0QEVel uWYOjtXLTBWG5xRb46AgDpPLnZXTLiRvrU4QW+8CKY5/nvdM9M2ZiLRoLhTlvQRJt3jN eH+cSI99GKVjS/Ks3zVQCbk+n4YaDF7aEpzm0gGllQQjhgSFp5S88eBRWcGtFyDhO16A KP13vD1pWE0geMR5lE00xPxFKLE+P3D/FeE8XMl8uioYWbJTfJRYFt+JZk1bwTXNf1B5 fH+tsora37JzVewsO0gzryi+jYQY7xwBHh1seZwt9dmooH11XVrLFswya3583UIjNTgt x5Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Lcdl8S70r76Z2c99LqXMn62p3DWLupv4Ml1Z+MPAhQg=; b=Lb0nAQUleHBNMUwP4UyMCJDgDZ/tPbeNYLB4nSIq8xnNyaETGZyNfz3pcSR4yAlV6d DOzvrncmWNbPytQip2DumlxcpyOYGmszQ9ssdXL4i2rIIeoB3t1HG5LZMh95miQYOs4f jhn8nrkZTVPVFirCwHHZ1e0nIvwbpt6WrWMTnHxDsI9m3nJc6e3N/YwL8qjLbttnFB5u 2jZrB+cgf+w73TENeZhE3R3PmsQ/b/Vs2wzKHAi1DnRtd+rBHeeRWArGi7tGtI4HbTuf djoV2QFS8v8PCgFQXiZMZu1CrpHeQwdwpsPSNQBCIFrQXu+tWbe3YBxqA7ZAA5GcjdRr /cLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ko/k/hrl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l11-20020a056402254b00b0042de68c0303si12393825edb.628.2022.06.14.04.54.52; Tue, 14 Jun 2022 04:55:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ko/k/hrl"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234519AbiFNLmc (ORCPT + 99 others); Tue, 14 Jun 2022 07:42:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238564AbiFNLm3 (ORCPT ); Tue, 14 Jun 2022 07:42:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D45A7E0CD; Tue, 14 Jun 2022 04:42:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 28DFBB817DD; Tue, 14 Jun 2022 11:42:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C229C3411E; Tue, 14 Jun 2022 11:42:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655206941; bh=/o7y2/l9DHmtQ3bRkAr5fvtaNX33HWKQ5r1f0IUnWEM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ko/k/hrlg3NenB0YrXj6aaKfJ2Xh9cVGhYh3YW3swIXRAEUMyz65eMGaPdDl80Eb6 N64gyEN/5aGFImYSpy7FKdIF0Nc3+0ZJ2/2+4ILsWMpjujFT8GNczR58ijna3z0EIE frl53Ezq5PI2OMTxH0iQUbeW/bPEXgQ4gmmevDYe+3/SoVf5YIdVFuraA9EW9tilSP 3KGihjhW7FnqgbbnP1PlNVnK1pi2d3YH4adhi5tjsQwjQ3j1hJQojupa2bRSGA1tcM e2X4EmsA1oH+9/zmFP7vawsFn0+QFxainLNYWbNXWg5DgMcrV2ejcrzPrHyx5a2Yt/ saticvhOBSatQ== Date: Tue, 14 Jun 2022 13:42:19 +0200 From: Frederic Weisbecker To: Zqiang Cc: paulmck@kernel.org, rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] rcu/nocb: Avoid polling when myrdp->nocb_head_rdp list is empty Message-ID: <20220614114219.GB1892551@lothringen> References: <20220611110044.2999157-1-qiang1.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220611110044.2999157-1-qiang1.zhang@intel.com> X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Sat, Jun 11, 2022 at 07:00:44PM +0800, Zqiang wrote: > Currently, If the 'rcu_nocb_poll' bootargs is enable, all rcuog kthreads > enter polling mode. however, due to only insert CPU's rdp which belong to > rcu_nocb_mask to 'nocb_head_rdp' list or all CPU's rdp served by rcuog > kthread have been de-offloaded, these cause the 'nocb_head_rdp' list > served by rcuog kthread is empty, when the 'nocb_head_rdp' is empty, > the rcuog kthread in polling mode not actually do anything. fix it by > exiting polling mode when the 'nocb_head_rdp'list is empty, otherwise > entering polling mode. > > Co-developed-by: Frederic Weisbecker Acked-by: Frederic Weisbecker Thanks! (might be worth testing with TREE01 and --bootargs "rcu_gp_poll" )