Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp673451rdb; Thu, 22 Feb 2024 16:27:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXBGtl774sc1xLznGwkTe7ux3HIq/UDUnVBrO0PxyX9Kli68yjxpEjYBvZne9CN4o+QsiYsQil+yPhXkf51KIFeSNupmhcx5zp4UFhY5w== X-Google-Smtp-Source: AGHT+IGn/E0owivRPrZTmRv96aU6MHCk2UMi1cJIQEl4sqM8ZuOSHTF6Es20nHAYIwa+HT5WL3F3 X-Received: by 2002:a05:6358:658e:b0:17a:e9db:bc10 with SMTP id x14-20020a056358658e00b0017ae9dbbc10mr502288rwh.20.1708648042984; Thu, 22 Feb 2024 16:27:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708648042; cv=pass; d=google.com; s=arc-20160816; b=mnBfa8bfFj5P0XKj6PuuMPnOh+FsiX/AyRThmg7VV4ywJ2T/MZl8VrNXrYTp8RhZjE w4j9Zzn/nIL5s1nIYly2C6pzKSzO2cV6wrUbIi3n2QqZZy4LO8bPNpcKYyHYDNgz/HOQ E2d2DQCQ96sv3LgHL0dxD8PMz3Ms5GF/rWp1iEudhi7BPOMEPw8wHfB1ECVdaLjBggRD ENmfLkvJvRdEoA152DUivi/Gf15SCAc0mA8E01Anka1z/eBpcPr8xr7nrNIBGbYuMscW oT8h+W07hE/YiOu17EvNwz/n1XdgeVS/MIo+6LZp3jGzP5ce6H3XHhEBjC5hpNTjtwSu CSHA== 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=qV90ve+Z3eb8n/eo5CI4C7/HUrtdiz661RZiHDJO/MY=; fh=V8h8Z8DDBzDlZ6Ih2RdN2nnQ1uRbl+35AuOrjFzoD7A=; b=jKeV4IyBuSFnOfBPB0C+h2g50OZ+LUGa+54I16Z5DeHlutbtmcw5aDYoPt3+FvNHC+ uWX2OH/FY7srXfa/yCBtgECJrEAnMvb5P3SZlD2M/2fWUQJ9UHZfpTUjfRnPj2CQKgbv HIa6tmOJtJi0bLZhG0Mff13Q2Xb4Tf26G7U1HUJVAqFpYcnrk92qcj+9Kn7XPbB3pw8W 1hQTOVsiIzwL79sxWzGLkhqri/AYXgwZtb89sO7XMD4xsrZG5M+NwlWlWf+EfXlaKY6p A8+T502Fw7hnSYJoji1idtNbKsiKPOtCztm1nuD4ZjpxV0WTdoPQqYdBOpJtiB7AenNF aNyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qrrUXwLj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77574-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77574-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 y2-20020a17090264c200b001dbc4d9d82csi10361242pli.479.2024.02.22.16.27.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 16:27:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77574-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=qrrUXwLj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77574-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77574-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 A99B6B2382B for ; Fri, 23 Feb 2024 00:26:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DA3C612E; 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="qrrUXwLj" 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 A9461387; 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=Z9cS/e9F1U4DiGvGLiopA4FFV++0zeXV2cUtyklgaqu/7HD160PnN6HhvabB9l+slWARNK172OU5ErDX7vpUhA7G4VubVR3q1a/ArR9P2F+7aR9xqKhdZzES3wdIZ/aZYQH7pjIrbjn2bRCZMnIY1KTg2gwwYXYCoKpzfYZyt5g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708647989; c=relaxed/simple; bh=7rZzzwXD4Z2+E6P0fKAU3ZQs833j/2iAWSnMfUO5kvE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dsbWBXCb2rZOJnEXgPMiRQH8DB7lLCe1fyhNZHm46rZIinDCtYkPs64Y4oxImUcyuM7Pgtd2jMAyXukDeNlmpZ/gSPPBg3N7tlvL9TDGizM51aW0thOjaJ9QYusUt5NbNLaS3wrgjXGyVmYp8FN9jMkiD5ohvVVfRHRMBw51bBA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qrrUXwLj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5769CC43394; 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=7rZzzwXD4Z2+E6P0fKAU3ZQs833j/2iAWSnMfUO5kvE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qrrUXwLjZvHoy6CLd4OlO+2bIHZDqW3lS4qoaGNvh0rMHe0KzwvmECCl28rabN4qV sEhxC74EE6d7XdFPrtDDS9npsDp1XYj066IuUm9lsiAVT72sr3/LxfbF9cipwkgyZs tFtwFpPOgLWaaIYrJt+BOLssM9lwaO5+V0HsMls4/9TCa4iTTL4aRLHZ6QsXGo3FEg yAQeeUItjfOXYa7q0/+mdCydHGmlIv7dhqdbL7e3+G5ezYthBN1t8yylM8KJZj+eef LNEsBwapBlgdJmQj7yTdbKzBeyPRpCL4UGXhP+MAFX4HDJxoQbp+oUMpjdLzPbkJSN AB0JM/mtmp0mw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id EFF9ECE0CC1; 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" , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , bpf@vger.kernel.org, Ankur Arora , Thomas Gleixner , Mark Rutland Subject: [PATCH rcu 2/4] bpf: Select new NEED_TASKS_RCU Kconfig option Date: Thu, 22 Feb 2024 16:26:25 -0800 Message-Id: <20240223002627.1987886-2-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, make BPF select the new NEED_TASKS_RCU Kconfig option. Signed-off-by: Paul E. McKenney Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Andrii Nakryiko Cc: Martin KaFai Lau Cc: Song Liu Cc: Yonghong Song Cc: John Fastabend Cc: KP Singh Cc: Stanislav Fomichev Cc: Hao Luo Cc: Jiri Olsa Cc: Cc: Ankur Arora Cc: Thomas Gleixner Cc: Mark Rutland Cc: Steven Rostedt --- kernel/bpf/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/Kconfig b/kernel/bpf/Kconfig index 6a906ff930065..ce9fbc3b27ecf 100644 --- a/kernel/bpf/Kconfig +++ b/kernel/bpf/Kconfig @@ -27,7 +27,7 @@ config BPF_SYSCALL bool "Enable bpf() system call" select BPF select IRQ_WORK - select TASKS_RCU if PREEMPTION + select NEED_TASKS_RCU select TASKS_TRACE_RCU select BINARY_PRINTF select NET_SOCK_MSG if NET -- 2.40.1