Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp696990rdb; Thu, 22 Feb 2024 17:35:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXyqiCA7qfqIAfhmaVMLdZsRTACO352aDYlAKLvI1lqNeg12RZKcmJXUuXcUX6x5bqN+JxQ8WE9pVoNe8RH/igOk9xSgeS5UBQQ1GF+vA== X-Google-Smtp-Source: AGHT+IEhYvhNW2qBLs9tIDVz+ktsmtVLYAGzALeRxrK/06erK6L7faOkbTXEt8zL5CfS2vgyTsV+ X-Received: by 2002:a17:902:f682:b0:1db:b594:7a42 with SMTP id l2-20020a170902f68200b001dbb5947a42mr719409plg.5.1708652111969; Thu, 22 Feb 2024 17:35:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708652111; cv=pass; d=google.com; s=arc-20160816; b=ffM/GU2NnpsI5/hJRTIdngqiSxlNjSu5VR/YlUuXDZYZ2eLK25PcrZOaT0QmWHR4Z/ yXwBRhph4KNx34fd10zGFVVUcgV0pJqKeor1pUKv0Wr+3Bnjy3FARA8lg99lXHhusCDF QVkzoY7Pzw+azoMgjF4e+yS4wxjWX4O5d/e1t9nVEM1g8YdJwfVjOB9OhsOxnyMa47Z8 XfbFtasT+qmzb7erQ9UqD6RSsmGe8fjyND7OloudHxZ8s9lFdwsdvyuFr+IRYKj4ZHs8 dNoeRjKaOeyqtHbo10OKbJg5OGXJf2l4BGklMtEREhwPMOZD/0uyMaOc/ZztwfC919wS OGFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=xRONpGVAA8h8EXeAnmdHG88g55hLst9/I3WBCj+i1E8=; fh=9VGK96qJ6YW9tjCwOwLLqZmPpRztLG7bmVjeQxCeP1k=; b=yVWG7cU4+CXRGmbfoCk6d3X2eFtiGnItLSURV4RQRzyhQGXzXycFI2+xAHNgO9dJpM Xn9UfW7S1vA/kNovLu+94JX24xUyRDmi4wB4htN5W0R743CSm1HJS0AOOIAFq6VR4LtG 9GUlN8r6+S6hip3ffi1tdTsrmMjw/EcIzApIYBJoxlwL4R/qsGDcSOdvgSNxlBb+sQm0 CJ7NZn9zQHuqjAojErhxMOQZF/3titoFZeQKrAc7NG/a1I01wdSFw5nS0J7/n3Aq42Ol Tfju/X0iPObMQSw2DtrNrquJtC9KrRZomGgNP+Nyb0jwHlppBg/IrkBdZoqMzaJEc21x iqLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-77630-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77630-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u17-20020a170903125100b001db29e31989si11140614plh.327.2024.02.22.17.35.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 17:35:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77630-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-77630-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77630-linux.lists.archive=gmail.com@vger.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 8A5892856BC for ; Fri, 23 Feb 2024 01:35:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81624BE62; Fri, 23 Feb 2024 01:35:03 +0000 (UTC) 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 826B5AD4B; Fri, 23 Feb 2024 01:35:02 +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=1708652102; cv=none; b=Re1/hvpzleCG46wCuJB0ZyvpqSFXZ9BCD1KTjNYR9BZVRMndt0eIKbzMWei+ESsuHKLvwilIg0KfRYqzSxH7z4WKiJLQDYdi1FB+naMz1pTNZY+wVI69+2s7UxIeSA+ypYO/t6cIVsMk3YKEl+c+8mTk1iaMA4D+nyaJIhJ3QLY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708652102; c=relaxed/simple; bh=bXEPELQj6UXcQp3AHH0JKTqXxOHMifJG9qOPbv1zezc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QPH3cVwLZ/QGOzYB70rF4wK5d3LfNPEmSXi9+ky2gu0Tctd9tSqJ5EDGIrcK0KvQWjFnc1GDOuzdl8qXc3dGbVpn7WH0FW36aOUfLEjQnntrmmTTSS494VM3LurJlGlw2umQrx4YPofjkfRfmJr7YaeutK+4Lir+gf6Fr9k5V/U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C66D2C43390; Fri, 23 Feb 2024 01:35:00 +0000 (UTC) Date: Thu, 22 Feb 2024 20:36:51 -0500 From: Steven Rostedt To: "Paul E. McKenney" 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: <20240222203651.410151c9@gandalf.local.home> In-Reply-To: <20240223002627.1987886-3-paulmck@kernel.org> References: <8c938bd5-6d62-4eff-9289-13b0d7ae8e17@paulmck-laptop> <20240223002627.1987886-3-paulmck@kernel.org> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit 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) -- 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