Message ID | 20221019225144.2500095-9-paulmck@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp572312wrs; Wed, 19 Oct 2022 15:54:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5H/WL4dhN4ulgm4c8Q5WBKBbNnb01CG6knUcZjAV6y9FtnVkP9ijrG43vnKNWmoNySUTUq X-Received: by 2002:a17:906:770d:b0:73c:a08f:593c with SMTP id q13-20020a170906770d00b0073ca08f593cmr9004302ejm.182.1666220092507; Wed, 19 Oct 2022 15:54:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666220092; cv=none; d=google.com; s=arc-20160816; b=yxy/pzFAD4ArblD5BV2iHc2BDTv5tQBzdAURXzH6UXMn/fzxnXH4bRM/hgSz6+pfDp zBe3f8lAzswdHQXx53m2iyGE47DT83NrlRQE2ODWiEX5pk/mpztgNBhnT6RPhf3VOXcA SMVTQoeMAO44YuP2FBcwXNdDAyxYJefQCwKYupZnJcy+tVFj5/4OUoiXpyircPHmRK86 HunSgjwhHKQ5EuMDyQyBK6GJ0Weo9Ncv7/2gR9uKV3hoeU1ZS9CXylAv5y719o+QwFhW dEhkWjXm4PA6Bwaqa7TXUU6jBVWoxJ+mbfnytugPBviYM9gfAHoEoU1hh7ukZySGYrMv Amfw== 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=XOZV7LmQxRu1aXrcZKBm/XqijZLMhzG5l+1tT1eLahs=; b=O39i+/Sfl87g2a30JL1EMUF0YwAG4CvlnBFXlVbt78xfWdX1mLdIFPL9II35miAKjz 43Y+5ufTawY2F/5m1SrdEGw4pEnxypIbQM9FClDYgwt5H1n47X9WvTlvWotxn1RWJf3u W82cW6Jb8TARqRKWBPIL5o4i2m2pA2MshX/qSPhpN0D62VpxrwCgRoCkh6Y11jNVrSUK YQOw37mhTLvC9G0EpsvS01q6L243OC4syWyp/1XO6at7pFwmxGALFysWT9Ncnq0kPOOk PwPqCnrwYu3XtL5kRajipaTnEsyM2Z9/wt3ql9BZCDyj+yZGKHLyiTPbPr5w7b8uFpHL 9WFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FOIF4YT+; 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 st11-20020a170907c08b00b0074168953071si11639049ejc.866.2022.10.19.15.54.22; Wed, 19 Oct 2022 15:54:52 -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=FOIF4YT+; 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 S231308AbiJSWwX (ORCPT <rfc822;samuel.l.nystrom@gmail.com> + 99 others); Wed, 19 Oct 2022 18:52:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230467AbiJSWvx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Oct 2022 18:51:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B6BF190477; Wed, 19 Oct 2022 15:51:50 -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 ADC9DB824C1; Wed, 19 Oct 2022 22:51:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1877CC4314A; 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=uyDGWyzfPaiQ/+Iwibul18/2tA5ta5E2a9H+CSNE/yA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FOIF4YT+jBvQCcjeX7q5P1woLdrAJJIJMkH/cVsGSyyZwzbRa3M4Cp3SUpwH1c/cd YzuPiSfWWB+c3rbYEIP6mZ15C58H0GHc2rkupVlCC/i9TojgYm1epLbEM6olCoMdH+ pVdGyxu1y73xPhJ1G+TE9NTs0WJvimU3uTnJB1qMAdDygUb1t3K/jlTq+Z02QxwegQ 9rv1YLiBVL+7WUbosqD/JsMq8be8XghLcaOIzRSlsAWtRO5YNTkfBff2hihW6nEdk4 g7JAbuGEsmC6T48BPyC2dZ7vUEBw/R6wA0dycUCiHf8x1W3Fo+n3cbUInLm0yDPKSp icbz2T/6l7wOA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 860145C0BE8; Wed, 19 Oct 2022 15:51:46 -0700 (PDT) From: "Paul E. McKenney" <paulmck@kernel.org> To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Joel Fernandes (Google)" <joel@joelfernandes.org>, "Paul E . McKenney" <paulmck@kernel.org> Subject: [PATCH rcu 09/14] rcu/sync: Use call_rcu_flush() instead of call_rcu Date: Wed, 19 Oct 2022 15:51:39 -0700 Message-Id: <20221019225144.2500095-9-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 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747158399975824247?= X-GMAIL-MSGID: =?utf-8?q?1747158399975824247?= |
Series |
Lazy call_rcu() updates for v6.2
|
|
Commit Message
Paul E. McKenney
Oct. 19, 2022, 10:51 p.m. UTC
From: "Joel Fernandes (Google)" <joel@joelfernandes.org> call_rcu() changes to save power will slow down rcu sync. Use the call_rcu_flush() API instead which reverts to the old behavior. Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> --- kernel/rcu/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/rcu/sync.c b/kernel/rcu/sync.c index 5cefc702158fe..bdce3b5d7f714 100644 --- a/kernel/rcu/sync.c +++ b/kernel/rcu/sync.c @@ -44,7 +44,7 @@ static void rcu_sync_func(struct rcu_head *rhp); static void rcu_sync_call(struct rcu_sync *rsp) { - call_rcu(&rsp->cb_head, rcu_sync_func); + call_rcu_flush(&rsp->cb_head, rcu_sync_func); } /**