From patchwork Tue Nov 22 01:04:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. McKenney" X-Patchwork-Id: 24086 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1930206wrr; Mon, 21 Nov 2022 17:05:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf7vy/HQR60Pbei3h0lvQsXOe5Asss8wFOFmwWqUgzm30Bef8KY1rOJbUCyMzFpEa22n5nBv X-Received: by 2002:a65:4c85:0:b0:46f:59bd:6125 with SMTP id m5-20020a654c85000000b0046f59bd6125mr19994186pgt.147.1669079144111; Mon, 21 Nov 2022 17:05:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669079144; cv=none; d=google.com; s=arc-20160816; b=ulAcsA2th/5hHmIt0d02E2+3MeP1/cnW9GuFl5QT0vRBaBuCbmJQs+LNPT3iG3EewN vV0aI3PacmnVv9qvdSpnJHP9lqjit8aJVDO9WnZEXRd4azRRaz9cBadBl2hNdWuzshXk oqUlL1wldDOifZ1xSoQ5WW/dsN9ED2C7px6ig3YyO1oTuBBqeQ3y3z0pFyGrXudyMMAU j0+ucL5JD42frUoFusqe1+iJO/uoYu1oWjtB1KOXMYpflUzk2sTBR46Vek217rmjaAE3 ev7dISBznRkWaNqUrR1Tyd5x59XdAohKOSrjFvwGzHXpH8VHykbrd0/3lWETxca7RG95 8/Vg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NKvxC3Rb6nkSb5iYzdJMXZ5bqB8v/yuo/n1QZuBus+8=; b=f2zhGrWYmGzmdzF9eEb8oGQTi4NUgQna8P7Ix6TvLRpXFBdlc2JlyuqLhTRPtqE8eK A5Bj5sdOosy3xfuGauMVpADHyTVXNmLqxo1hGhWJwpG6vfChGlV4Ys0S7Eq+ywKBeEGA 8pfsSQojsTZI6q3vSy3CG6ALQkQVryoqUHFaod/yTYeGXtnd5pm0bq8YV8YbS4wo3GwR OWzqaj7q8O6b6rx8cPN/uK9s/FFGyN4Q7WpQ0WD4IxuiOke1DGMqw2jRVSHC5T8IWpDQ yLBk5FjAX07gr5mHI8Q/wvK0516pbT2QZrzGARvgoUArc1sHH9QY2FEOKoamEjW+/ugJ 4T1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RZFElDl2; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a170902d50c00b00187204b35besi14341038plg.203.2022.11.21.17.05.30; Mon, 21 Nov 2022 17:05:44 -0800 (PST) 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=RZFElDl2; 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 S232161AbiKVBFD (ORCPT + 99 others); Mon, 21 Nov 2022 20:05:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231978AbiKVBE0 (ORCPT ); Mon, 21 Nov 2022 20:04:26 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08BA51E3C8; Mon, 21 Nov 2022 17:04:25 -0800 (PST) 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 A2C31B818BC; Tue, 22 Nov 2022 01:04:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2792FC43153; Tue, 22 Nov 2022 01:04:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669079063; bh=tEjic2DFB31t8ylkVSWil0ue1UwVOCBgRrj8WJMVg8E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RZFElDl2xa4aU5vs66KvPsfhJM1wHZrsTZBTpjiD4mvRVzWPd/qFRpvxjTHLDtbpR 81R58GX8DRLeUP4eWFKGcCWLVnO3hj4SovbJDEh92KpZlSlmDtI9pvZzAxG20JMlG9 Y2iuiCPzH+qhERyfj4mAo6wFBtjvY9uYJAPqRXqpovdimnt9NhP4ByYdTZWy4USGMC BgdSNXKfQ64/8o92FmI0Ep069lODyXBJqCbHSBnGp5hY2GUWFneAMvJVet4vivyAsQ FBZBvm4LvG4XrYDxOEC5lZbtq8JWMq4MXt78BrPxWo+G1xzax7oRkLe9zOLFvusB8M HrsI8JtVdB9oQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 837DC5C146A; Mon, 21 Nov 2022 17:04:22 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Joel Fernandes (Google)" , "Paul E . McKenney" Subject: [PATCH v2 rcu 10/16] rcu/rcuscale: Use call_rcu_flush() for async reader test Date: Mon, 21 Nov 2022 17:04:15 -0800 Message-Id: <20221122010421.3799681-10-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20221122010408.GA3799268@paulmck-ThinkPad-P17-Gen-1> References: <20221122010408.GA3799268@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750156332917602573?= X-GMAIL-MSGID: =?utf-8?q?1750156332917602573?= From: "Joel Fernandes (Google)" rcuscale uses call_rcu() to queue async readers. With recent changes to save power, the test will have fewer async readers in flight. Use the call_rcu_flush() API instead to revert to the old behavior. Signed-off-by: Joel Fernandes (Google) Signed-off-by: Paul E. McKenney --- kernel/rcu/rcuscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/rcuscale.c b/kernel/rcu/rcuscale.c index 3baded807a616..3b149e745a0f6 100644 --- a/kernel/rcu/rcuscale.c +++ b/kernel/rcu/rcuscale.c @@ -176,7 +176,7 @@ static struct rcu_scale_ops rcu_ops = { .get_gp_seq = rcu_get_gp_seq, .gp_diff = rcu_seq_diff, .exp_completed = rcu_exp_batches_completed, - .async = call_rcu, + .async = call_rcu_flush, .gp_barrier = rcu_barrier, .sync = synchronize_rcu, .exp_sync = synchronize_rcu_expedited,