Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp399255lqh; Tue, 7 May 2024 02:38:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKJV3Pt2c/5wKzMKY4NPLPBICoZkxZBNwOu9u4eA9ctbGDUyXfGBUpsxP+qjOnFOfKHWGWYIMZFhudfE9yA/tmBWrOQhEPbzURjDon0w== X-Google-Smtp-Source: AGHT+IFNhY4T8Wgw2Cu5yY8D1U7sMKArGTJ64qzbSiGrF+Mn85dnu9/XZSD76E9qeS22YHMgtdjD X-Received: by 2002:a05:6358:41a2:b0:17f:72ff:221e with SMTP id w34-20020a05635841a200b0017f72ff221emr16557210rwc.4.1715074708986; Tue, 07 May 2024 02:38:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715074708; cv=pass; d=google.com; s=arc-20160816; b=bQCDZcjm4dD1dIrk+SM0M9KeyE3eMjqV8qwTPs0Yh0HUdAXvOSz/neZBDeXp1WWmB/ K1teaDopZz+hy0jCvKyanhUk3xREmQhHShSUYsMQDo8Zowbz2GiO/tnsvYZvT62I3W2r yAYP1aHBM+zanEvJ++UZKX8r1FRRT7b1JXn/N6H1+rnFyE/N81UR0AOem3fz/4dENvgd y7XW50HMJ03QVZvWsVtayK6FsqjJTEG6mX05XwYPb2uwlFqC04e1OaJXKdWxa9vhqZiU pVGQaSKP9sX4JJfa+u8pYyG8uSS1jwrhibcn+ftSYwSjPy3rJ+mD3s3JboDawRV1c6dy PTRw== 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=qp9Gj7lq4ACmCS98GBHRZFh0tqGLeKwKmlOcd+I5en8=; fh=QE15c1HUaGlrB+Q78GmIrJdp5TqfscDr20XNwQpsCUc=; b=MLCznWaIVjEA78eJ+VD32q3r7qP4ukHmGbaEIRA2xH7EVjmh7AmzSjMlM29hUGvtI/ Cx6ylX3U02VjSMAccJJ05frpNKRyKcy64CBP/hFQmpBeoG6Zor8uN5SWK2GubKYMxU/K hOE9eox0muvSVMZAzTPtoy1dDyZkCjGxxaaeQmKu3LVpf2GpeMNDDF0Jn7VYe2xfjVAi 15EFe3n+hX4Yph0uVOO5lzPylAwRlo9PRbwZ5YXY0wfsYQa9brjn7mzSdsK3L3V5ph6r JQhE0IlUOQjvw7ok+gELd2pnkCsuMTcmKNJ67ZBY8m1k8orvD9I8XPTfNv+6Eep4d4N5 yOrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MtT+8ywr; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-170970-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170970-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bz29-20020a056a02061d00b0061bdaec93aasi7972262pgb.519.2024.05.07.02.38.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:38:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170970-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; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MtT+8ywr; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-170970-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170970-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 8CD032866B9 for ; Tue, 7 May 2024 09:38:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B46A158A22; Tue, 7 May 2024 09:35:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="MtT+8ywr" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DE62155390; Tue, 7 May 2024 09:35:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715074547; cv=none; b=drLS33OU0KDImWTemDXS/SlvjmF0Lrdry/x+jf+ZrHB3OUqPBvCn/x/VDjoURtLc6F3e15UAq98K52Sq16586KW9JT2n7XLtTF38eJDACNhvJHIUBUZifp+FDTJ8K+eYUBChT8yubgIUxJXDA6zClGWmXBNK1GYSG99H/3wnQ+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715074547; c=relaxed/simple; bh=chdfDJkJUd2381b+AYErmHdsM+6kHBcN2R8PWQKTK+w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZldjTnukViJ49IyYLPPl/dXwoR5dmr+/JxUg8RbC4ickHWHshmB4IgGFui4jXpkReLLDh8QJ4dNoKLt6pBiGcv1gHFZy30x4Jf0fOrXw1RucqsgWQ+48t/ta322MpZvDLyJjmsEP+/BLQMbsK7PFl6MTZ4gmntlLOlTppamO3yc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=MtT+8ywr; arc=none smtp.client-ip=209.85.208.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2e3f6166e4aso7187251fa.1; Tue, 07 May 2024 02:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715074543; x=1715679343; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qp9Gj7lq4ACmCS98GBHRZFh0tqGLeKwKmlOcd+I5en8=; b=MtT+8ywrCi5/iQhwutoypnQspkEBkOeIZ3ujcsFJewmsDbGXx6uzHcz+7KsakzSz3N /oJISuR6Vjaa58IlRdQ2xi9qE8mYaBnEJ/jt0VhNTFFrJ3cwVyDfSKAnQSE1qUy7Fhbm VHXpfrZxLKiDko0O20xheOore+68yCR3WR0HEDe8zHS3Tuakok80b4857eHUAhNwoU0a 7OUIQ9DLSurTW5/fYqjaBYC310V+nHDOqZtTumQIcMh1e37jAvXNA/Qd7EGdHr/tFzkd ULb8QYz+Q4E1giAzOY0oYNyOSk7yZCxc7gCasQjaQMxN2pFwhxj09T75TfnRDztbIizr C3JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715074543; x=1715679343; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qp9Gj7lq4ACmCS98GBHRZFh0tqGLeKwKmlOcd+I5en8=; b=Zhh/UtlKheF3Gx4Io58FsgUh1TCw3j7ztG3CQ2Z54EbUS0g3l7tSjNc5CgohqyTvpg nNZmNSearJUgYMOh60//2rXYlk31wlIiPN5lm06oGKvs/ZWkbRZi4xOdNMMTocVnmrSb vxpOaYzt+6no7CXYz+vNY7d3cJsel8L0IgEqEcxeo41O/BwcRhozTRemI5LQI7FqWC8f 0WBY2gmsZK7Jzogzxdz4OMEQ0D9tS1fHWuVk6H1aa6bIwkuVYwLLUkAZRJP1aNMAuN0K X1laj1683FL75GjpsBZDO+1C6n9Ppb9LCBq8jIu84FPq5pAIvcAkgQNxhSPWGuS99RbJ n/xQ== X-Forwarded-Encrypted: i=1; AJvYcCXreQtJiIo4EFqvgpFGG1cy7AEd6XhlTFhR1ERiOzXc0C1kmT4GgjEC/H289ilpC91edI8q919uuCLQmgdraCcTTgKeV0tNFtDG1L4fsaWFbLxO9PIpdSBBTpDtXekNS4uS X-Gm-Message-State: AOJu0YygEgI3vICDO9iJqHiQfTITFSVJbvVLSBYNMBWCimOtzJAlzCKS 6zBB9/lyjz1SacSIcyBtwrsRRSSRMLukuckQCgWPMmBAhmUDSYypQWsRQ59E X-Received: by 2002:a2e:b8d4:0:b0:2e2:72a7:8440 with SMTP id s20-20020a2eb8d4000000b002e272a78440mr10513801ljp.41.1715074543428; Tue, 07 May 2024 02:35:43 -0700 (PDT) Received: from pc638.lan (host-185-121-47-193.sydskane.nu. [185.121.47.193]) by smtp.gmail.com with ESMTPSA id t18-20020a2e9d12000000b002e29c50c4dcsm1335473lji.27.2024.05.07.02.35.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:35:43 -0700 (PDT) From: "Uladzislau Rezki (Sony)" To: "Paul E . McKenney" Cc: RCU , Neeraj upadhyay , Boqun Feng , Hillf Danton , Joel Fernandes , LKML , Uladzislau Rezki , Oleksiy Avramchenko , Frederic Weisbecker , 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 , Steven Rostedt , Mark Rutland Subject: [PATCH 11/48] bpf: Select new NEED_TASKS_RCU Kconfig option Date: Tue, 7 May 2024 11:34:53 +0200 Message-Id: <20240507093530.3043-12-urezki@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240507093530.3043-1-urezki@gmail.com> References: <20240507093530.3043-1-urezki@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Paul E. McKenney" 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: Steven Rostedt Acked-by: Mark Rutland Signed-off-by: Uladzislau Rezki (Sony) --- kernel/bpf/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/Kconfig b/kernel/bpf/Kconfig index bc25f5098a25..4100df44c665 100644 --- a/kernel/bpf/Kconfig +++ b/kernel/bpf/Kconfig @@ -28,7 +28,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.39.2