Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp756976rdb; Thu, 22 Feb 2024 20:57:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVAVfzjq3DRtu9fDHfpIpSTySqL3ullMRsXxHB5a3t/6xTqVjK9C7/pn9s27RAR1Sy+z4mgIVTJBWszIVtPzJnNymrnJCLrbcdZO61m+Q== X-Google-Smtp-Source: AGHT+IHaaVtwpZj0tsJM2kIJJR8dG76X6iCJntqtVcrKP1mTgQD+XcnWtMD1yP0XbeRIQkF5or+D X-Received: by 2002:a05:6a21:1788:b0:1a0:def0:ba32 with SMTP id nx8-20020a056a21178800b001a0def0ba32mr2287313pzb.18.1708664225136; Thu, 22 Feb 2024 20:57:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708664225; cv=pass; d=google.com; s=arc-20160816; b=EUnSZ7I0c+xSEeTu/2Y/iQ6RES5O00CS/tSWCx3FeiDkXk/+xhufjuqHwbEB0VlqTZ 3sa3bgcjFM/ER3S2a/azzmsLrp6H2A5xlbHlhUUGM3YjtD1eMJnOyPgb0LZvmZb6ZwZv dNI7AXIZg5twKgdZEl//jSaEkT8sxrVy6FBi/ChuxBJgj0QQV92XShdtcsB8yrzZXooQ 8J8LRLHPT7Flo5C3MK+fKxFKvT1ztuEMqPN+HJWKdBmqc8YC/y8NFzk9SXMhLSYsLDoQ fisiEqLeJyWKUO90+1WONnkKNmwRLu27ii9oqye/VUn4fTmMTYw8CWsetJFQJB3OfN9a OgsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=mlTU99HfxO6zM8BJyv2f0cx+UyByAgqlVb+UXuo/174=; fh=iojBg5W2JgFXd2fqufVnqdqZoOQJeCIUqoTBat4eikc=; b=1I0OV6hG0L/qgku0dbiRjtu7XD61Vd+Ds5DJDSl4cfdYe6ghwc9MnmhdhnYRK/QTRx sQ1sU0l2pv0qHitS0lwWEPwAHpqOmtlt6bnIEqt2kZIeGG4pgveXU228LywUjPRtRmyu yUcdpMmdif75WrpwvqN+8xD6cA2D9osAKF09T3gXMoVMgbTaRUn3PcEYc2LWLwjZ5k+n CajoHkKMoG8INws1ZISInNk04wQWnTA2EcNtL+3PTT1z/haPZeImDbTEWsDBsvemmjao +unGHpLRQfYPr9PZXDn66J71CDJKboVrPcJjPUYyDGULZ8q36V6aWbFNgod+m9jWg/E+ 0crg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fm9Vb/ZA"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77775-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77775-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w186-20020a6382c3000000b005d760d1af1csi11372316pgd.460.2024.02.22.20.57.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 20:57:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77775-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fm9Vb/ZA"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77775-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77775-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BB9B92842AA for ; Fri, 23 Feb 2024 04:57:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5966311705; Fri, 23 Feb 2024 04:57:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fm9Vb/ZA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7357A1119E; Fri, 23 Feb 2024 04:57:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708664221; cv=none; b=VDt+628UhMb/Q5n2JC+KFlr6by0wTaYQLaE0Zm5tIlQ9UPtk+k5s7u9loUsgiqFtT0QEoFVy97vgYGefremZKn2VHlw61i7oRdtpG6vLqrKESyvvi249oR1Rws603M4m5yliJOOmvhn8QSAX1ztyoZOR/AdzkUWWxXOaNOLyyCI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708664221; c=relaxed/simple; bh=7x9O6YJuADgP4s+qZxFjc8202z6woBsZ+9FShLcBVi4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cM2kIYG/Qq7u+dCgCxrksHkTt2VOMjhoCzUk66gxt99bRPn4baHgnbvYnOXGbq67U4sNye5ESWZpZKXO2JZgWxLgVwhojjXXP/HmkRHz0On9GDGD2yfvJ49iIp1ATo/k7lNU+XlNQlBvpv3gfzeySPjJJAdr+Y6bC0oN1YupZAw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fm9Vb/ZA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7348C433F1; Fri, 23 Feb 2024 04:57:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708664220; bh=7x9O6YJuADgP4s+qZxFjc8202z6woBsZ+9FShLcBVi4=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=fm9Vb/ZAMaDMDk8Z/RUM7GBOMS25QKtUcYkGxaG6+hk8ng3SBlwuGQCQ6HBJco0vI KXiZGSQTS9n7FzvmlRMQaYXQan2W/3AgpHTQlgU4dxPPDxro6lxgLsb6dwFs2rBkpm 5t4cLZtfPU7l6yQN3YEJ2V2VkwIyxOU7m8r2z593H0e1n7gslBT7CgcfLnfASauJ4o A7iU1WkbOj+gROoeAaO6uVnICfGpckkv+0DJafCC8Ot+tr8ivhQWX0h9G2XTWhXVlr 59kVKS0m6wiymigFw3708FyyRxsCP8cJFjsZcEf7t3x2G3741T+TR8P/2pZyCmilSt UwIMcST4FxeHA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 7EE09CE0B71; Thu, 22 Feb 2024 20:57:00 -0800 (PST) Date: Thu, 22 Feb 2024 20:57:00 -0800 From: "Paul E. McKenney" To: Steven Rostedt Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@meta.com, Andrew Morton , Thomas Gleixner , Heiko Carstens , Arnd Bergmann , Douglas Anderson , Ankur Arora , Mark Rutland Subject: Re: [PATCH rcu 3/4] arch: Select new NEED_TASKS_RCU Kconfig option Message-ID: Reply-To: paulmck@kernel.org References: <8c938bd5-6d62-4eff-9289-13b0d7ae8e17@paulmck-laptop> <20240223002627.1987886-3-paulmck@kernel.org> <20240222203651.410151c9@gandalf.local.home> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240222203651.410151c9@gandalf.local.home> On Thu, Feb 22, 2024 at 08:36:51PM -0500, Steven Rostedt wrote: > On Thu, 22 Feb 2024 16:26:26 -0800 > "Paul E. McKenney" wrote: > > > Currently, if a Kconfig option depends on TASKS_RCU, it conditionally does > > "select TASKS_RCU if PREEMPTION". This works, but requires any change in > > this enablement logic to be replicated across all such "select" clauses. > > A new NEED_TASKS_RCU Kconfig option has been created to allow this > > enablement logic to be in one place in kernel/rcu/Kconfig. > > > > Therefore, select the new NEED_TASKS_RCU Kconfig option instead of the > > old TASKS_RCU option. > > > > Signed-off-by: Paul E. McKenney > > Cc: Andrew Morton > > Cc: Thomas Gleixner > > Cc: Heiko Carstens > > Cc: Arnd Bergmann > > Cc: Douglas Anderson > > Cc: Ankur Arora > > Cc: Mark Rutland > > Cc: Steven Rostedt > > Reviewed-by: Steven Rostedt (Google) Thank you! I will apply on my next rebase. Thanx, Paul > -- Steve > > > --- > > arch/Kconfig | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/arch/Kconfig b/arch/Kconfig > > index c91917b508736..154f994547632 100644 > > --- a/arch/Kconfig > > +++ b/arch/Kconfig > > @@ -55,7 +55,7 @@ config KPROBES > > depends on MODULES > > depends on HAVE_KPROBES > > select KALLSYMS > > - select TASKS_RCU if PREEMPTION > > + select NEED_TASKS_RCU > > help > > Kprobes allows you to trap at almost any kernel address and > > execute a callback function. register_kprobe() establishes > > @@ -104,7 +104,7 @@ config STATIC_CALL_SELFTEST > > config OPTPROBES > > def_bool y > > depends on KPROBES && HAVE_OPTPROBES > > - select TASKS_RCU if PREEMPTION > > + select NEED_TASKS_RCU > > > > config KPROBES_ON_FTRACE > > def_bool y >