Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp673445rdb; Thu, 22 Feb 2024 16:27:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUOEpmf2IFJfwwTy/sUM6vE+Wipj7DE/5Ne5aPx0XYdxeDOvuIFtvgzPlKgMdOaLBXmW2TQLJyOFQe7hZDexrEt7zR8n5sW3Rp4q+fL8w== X-Google-Smtp-Source: AGHT+IHmvmNfPKpfvwEzaeBHvLfxk33ISiRZmFMTvuvRyILpDOScWgQhpQrpGaNNfos0H6Nt2pwj X-Received: by 2002:a05:6808:1b21:b0:3c0:bdb1:eb8f with SMTP id bx33-20020a0568081b2100b003c0bdb1eb8fmr510832oib.17.1708648042016; Thu, 22 Feb 2024 16:27:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708648041; cv=pass; d=google.com; s=arc-20160816; b=t6LlwM7eyLYw66/pFXjdp/H4Dp34wudIjtckB7Kj1ML7hM2aej0qAtYM+O8e7WRHMp /nqqmF4m6FdoWxbKYkgReo/XEEb9sT2jM4bucokj2U/sE/SaQqFDrhN72jWQtXKk5dB1 Hc/PgQHCyqYHm4+F1UF4482hNPo0/KDVSS3lGBm1aZBaJPF3IPS7Eprd0wqx58RzLGqL yjQGfy6UrB3YhR7c/oJoLsYdcGG4L6gpRevh0SLi0R+SeTWM9KnP8dMQOhRO1XkgOYzM 6jJdIZJe0PTT8Kej4XbDSh8ZhPoyOg9zngpm9BJZPHca6AvUq/3A2ujZH18Emhuta+mZ GpIg== 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 :date:subject:cc:to:from:dkim-signature; bh=w83ACVJ1ofrhsZowgoNrhEME9HcLDpKgkBW4lr15nsM=; fh=ykQsgMYDzcOff9JXnhaWTMmjnOpmcSMiMnBbHuDT7co=; b=kVc2yHQOI8lZrC/M9PckI2+j/L2J1xk4bDvxq9VDUeVkVOcjCXKtsrPd5wdhQoQN5X v2bAADnegD/ZlfJNDYp7/bwrOxNINtM86CrKhruPqLNEUd1r/NXR7kDiQJ+8Wwijd2ld XyQL/EoCysrzilQptsZkFpydSkpjVQLfg8PzQzGIPKRqveMsxzV4sGzyj6gCyVzCx0rN GptEcv5dF9yOkftd77Xl/n7uXrNrGoj7nixP/YtDkLz6MfWRQ4NzmbuvUIca93Em3NvU gjCGTUTkOn+Ai6hGFmNTLihpCbQ4/w0ZLxPn5LbusJ3WKdidcV/1BRxOVDlajREI9qI7 1gTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qCTyFMCj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ea17-20020a056a004c1100b006e467c9230csi7979312pfb.88.2024.02.22.16.27.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 16:27:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qCTyFMCj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77572-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B3B18B2300D for ; Fri, 23 Feb 2024 00:26:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 839D1611A; Fri, 23 Feb 2024 00:26:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qCTyFMCj" 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 A943637C; Fri, 23 Feb 2024 00:26:29 +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=1708647989; cv=none; b=dkgnQcct+MYI8UnHOB0VDj5iWp4TUxXT7hiwrIGX8FqTTgsteuUhOhD0qRXVTdllZHVghe++9Ld0tHX1O4xZ1ievkeOTx1RJfF/379PysNkwx60IMEPDihrnkyN8hQWhDAhdNUM/XHa+bKqBwFTMKiekVtstJ/iVzsOCldE9arw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708647989; c=relaxed/simple; bh=YJHlxUD/OoJ0p2sStlRJ0L83YeFXqQtRNbqzm4TpUZ0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Xp++rKzZyeRzd4RcZoIQ6lQRrPU2QZKBg0WWTPHrlhPK/ADx66WTfxUquksHf1PgJk9agtktJqbs7vyqJN1o+aSXfWN0pza9rVM3L+4i9cgmyXtlxnH0Nm48aZaAAz8rjGB0xQZUVfKvaI6EirRVTrYiDKwl78yHkhLRLuxGKsc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qCTyFMCj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EFFBC43399; Fri, 23 Feb 2024 00:26:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708647989; bh=YJHlxUD/OoJ0p2sStlRJ0L83YeFXqQtRNbqzm4TpUZ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qCTyFMCj76ttTJk+FnrqikZSBryBEHKqLEEVxT3jCYfiKeZdIEMFa3Q9CX9Q8gMFz gswhQjnjw21nIhg+FAx6eVynOcN7rkbEc5Yugf3TVgAZ9t1XgumfYX8dEvMppaBPRk omD77vwUgTcQOuNxkiomgWDLSBTpjwpAnBlo13Ip4wIw4lV6Ww4sivkQy5eb4lq5yL eK131CP+TipF/RH9rgd9AJiHyOIH2sTSBGArSA8QPcjTXOLcK8228QP/EBwrieZMEb B0aV44xWzv2D7afRH1KfhxEOJ6uMPf02GKQxYZ9t2eBM5w1r02QhCtXGrH+AYBoGrp 2p/5xHutzXGcQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id F2CDDCE0D11; Thu, 22 Feb 2024 16:26:28 -0800 (PST) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" , Andrew Morton , Thomas Gleixner , Heiko Carstens , Arnd Bergmann , Douglas Anderson , Ankur Arora , Mark Rutland Subject: [PATCH rcu 3/4] arch: Select new NEED_TASKS_RCU Kconfig option Date: Thu, 22 Feb 2024 16:26:26 -0800 Message-Id: <20240223002627.1987886-3-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <8c938bd5-6d62-4eff-9289-13b0d7ae8e17@paulmck-laptop> References: <8c938bd5-6d62-4eff-9289-13b0d7ae8e17@paulmck-laptop> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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 -- 2.40.1