Message ID | 20220620225411.3842519-8-paulmck@kernel.org (mailing list archive) |
---|---|
State | Mainlined |
Commit | 5c9a9ca44fda41c5e82f50efced5297a9c19760d |
Headers | show
Return-Path: <rcu-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 023B7CCA480 for <rcu@archiver.kernel.org>; Mon, 20 Jun 2022 22:54:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345162AbiFTWyh (ORCPT <rfc822;rcu@archiver.kernel.org>); Mon, 20 Jun 2022 18:54:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344555AbiFTWyR (ORCPT <rfc822;rcu@vger.kernel.org>); Mon, 20 Jun 2022 18:54:17 -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 9E29115FFD; Mon, 20 Jun 2022 15:54:16 -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 408EAB81651; Mon, 20 Jun 2022 22:54:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B77F1C341CC; Mon, 20 Jun 2022 22:54:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655765653; bh=xNUf4AjUlsD2hTI+bOVHyvMc6HIkzHi8xKR+Q8249JU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SstSVbFsK7XftrvmYUGTlUyH+RCTw+Je2MrFbOtkd2Ho3e/lELQUWSuUdXcXCHmef pZMShWfjheOEkFlNjOjMfjj/6PCt8ErCLlstiS5YZhExI1t1dcGRJkp2qUU0j3Fu+9 bfmQfsVD+vzi8+VO9JiyNtBfMizJs6kOAiY4u5lqVnVG8QwOz+SlOK3TNMnwGYQ6fu gjgVCxie9PEFdz+1xWqFF1dLAEOmMFQJ3TkuqEQQQfn8vySv5tY3IPZHYwG12jBMgd 9sq9hb6BcD/3Rfhz6qyHxnHHM918W4PBBLRtYQqkjzcmgc220Y0LCP+akfsG2isE1z 6w03n10FJEqKA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 367FE5C0CCE; Mon, 20 Jun 2022 15:54:13 -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, "Paul E. McKenney" <paulmck@kernel.org>, Neeraj Upadhyay <quic_neeraju@quicinc.com>, Eric Dumazet <edumazet@google.com>, Alexei Starovoitov <ast@kernel.org>, Andrii Nakryiko <andrii@kernel.org>, Martin KaFai Lau <kafai@fb.com>, KP Singh <kpsingh@kernel.org> Subject: [PATCH rcu 08/32] rcu-tasks: Idle tasks on offline CPUs are in quiescent states Date: Mon, 20 Jun 2022 15:53:47 -0700 Message-Id: <20220620225411.3842519-8-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220620225402.GA3842369@paulmck-ThinkPad-P17-Gen-1> References: <20220620225402.GA3842369@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <rcu.vger.kernel.org> X-Mailing-List: rcu@vger.kernel.org |
Series |
RCU Tasks updates for v5.20
|
expand
|
diff --git a/kernel/rcu/tasks.h b/kernel/rcu/tasks.h index 8fe78a7fecafd..ec68bfe98c958 100644 --- a/kernel/rcu/tasks.h +++ b/kernel/rcu/tasks.h @@ -1451,7 +1451,7 @@ static void rcu_tasks_trace_postscan(struct list_head *hop) { int cpu; - for_each_possible_cpu(cpu) + for_each_online_cpu(cpu) rcu_tasks_trace_pertask(idle_task(cpu), hop); // Re-enable CPU hotplug now that the tasklist scan has completed.
Any idle task corresponding to an offline CPU is in an RCU Tasks Trace quiescent state. This commit causes rcu_tasks_trace_postscan() to ignore idle tasks for offline CPUs, which it can do safely due to CPU-hotplug operations being disabled. Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Cc: Neeraj Upadhyay <quic_neeraju@quicinc.com> Cc: Eric Dumazet <edumazet@google.com> Cc: Alexei Starovoitov <ast@kernel.org> Cc: Andrii Nakryiko <andrii@kernel.org> Cc: Martin KaFai Lau <kafai@fb.com> Cc: KP Singh <kpsingh@kernel.org> --- kernel/rcu/tasks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)