From patchwork Wed Oct 19 22:51:40 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: 5897 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp572649wrs; Wed, 19 Oct 2022 15:56:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4/x5VufoK/zkA7L9PU3tt/c8vyc3t8b4xCVoZID1wbEGHx1g9gjIr4OudIHWEnog3ojh+v X-Received: by 2002:a05:6402:5211:b0:45d:131b:8dd7 with SMTP id s17-20020a056402521100b0045d131b8dd7mr9663887edd.93.1666220162078; Wed, 19 Oct 2022 15:56:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666220162; cv=none; d=google.com; s=arc-20160816; b=IUyxBUUMntgojoC2/3HxIAu24T8I6G4BixcS9twn57eNtlukq3N8QWsfpr/DTCLc8m c1d5vATNfaCDkYjqHrmkrMcS9XuY5FUAYn1I8BaYuvsbd8ndgZZJKEpI6qOzKwwkg2vJ d2tyIMTX+GGPRU97kxd6ZXbOeTNoao1P/1U4ZKI+a1zoV4p7ZCB6T14ZSLmslJmt2015 BiAsQnmedSHpmN0GDDyxJxqojwn0bN6nna9ICveYFziMZa/pEEyiM/cMoDFtN60A/gFH 7NBkVMeiBDbfWdnWtIZDlwkmD+8Kds1nuEg6xkJbPlT70r83AmHWw8G02Bol1BwXgO5h 0kgA== 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=P2Zu+h8+elQRzZXrHbuiOWU40wjdc0L3Ik+iQQ3iDHc=; b=xiy4170zU1QL0MidX5MReV0xjb4cd38DSUqHpi4g5Rxe5wsg9l1WZZuQquRZ2X42fV 7Ftt1NYaTPhqiRqkynxhwn+fG6hbUu9gfl3afKRMjjq5eGk3NvgPmWO4lyXfQTi49GH5 bp0ycVPxTFEFcncHRjPsfczj/KaCKIEY7nByQhRQ3HBJtmsJUeeNR1eoquHRXEmFrazw PhyLVFZWE4ToNEBGEPa6qUvnz1GXOD76tKGpjJfWTNpvmDjY+q/3WqvxGbHrBFejGbip Dew/8Yb38Nwn6f4JBtGtrg9fC8tTpNA7B/cQJQoIFAQiNfrdIUqGQq9d/3iyQrg/XpZD 5oyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cYcIi9YT; 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 dm4-20020a170907948400b007894b9de062si1358592ejc.631.2022.10.19.15.55.37; Wed, 19 Oct 2022 15:56:02 -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=cYcIi9YT; 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 S231345AbiJSWwj (ORCPT + 99 others); Wed, 19 Oct 2022 18:52:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231128AbiJSWv5 (ORCPT ); Wed, 19 Oct 2022 18:51:57 -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 DF9BF18DAA7; Wed, 19 Oct 2022 15:51:53 -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 673DCB82624; Wed, 19 Oct 2022 22:51:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25E2BC4314D; Wed, 19 Oct 2022 22:51:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666219907; bh=n20MIqYs0+kWqGRzQ0GMSKtx306RkdYYsYOWA4bkwmg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cYcIi9YT6YwtY8k9Whsejvj1ntn5NUuJrR1GY7zsIEczTN8qC7CK9urL79tCh+hFL gNaFECgsjyApupJdT/fvJgSf87WwgZ2vRtPR6DQBmn/8BqENMMpgKZ5bG/GoNARzmN jrDUxONIRlmVNlOhcF0gj/+Zsh/rBiOH6wqqs9h6fsJYc0i58UptoqDr/235lyyAbn vsI5g1q6HGqHFtXBAzGzTPcw2kPK5Jz0adC6fazXn+Y6PYYx9sT3VEGll3hv1W5zhn vSKi5A9mLPlGVy3ShgPJGj/JUK2gchfQjqx4QXGCc8Qd6uHlH/relI51B5XtA94THa 7aN0vGyPc8H4w== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 87D815C0D2B; Wed, 19 Oct 2022 15:51:46 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Joel Fernandes (Google)" , "Paul E . McKenney" Subject: [PATCH rcu 10/14] rcu/rcuscale: Use call_rcu_flush() for async reader test Date: Wed, 19 Oct 2022 15:51:40 -0700 Message-Id: <20221019225144.2500095-10-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20221019225138.GA2499943@paulmck-ThinkPad-P17-Gen-1> References: <20221019225138.GA2499943@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 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?1747158473170678473?= X-GMAIL-MSGID: =?utf-8?q?1747158473170678473?= 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 bbdcac1804ec8..0385e9b123998 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,