Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp673141rdb; Thu, 22 Feb 2024 16:26:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX17wjMoZjQ9jt4xyfa0k1T1q2FqClOe1aJiPW6FjMW0mJmxnFifOHeJooBo7EybIKIuElrBlyWfSRP1bw5O4b0Aqc9TKDHt3SROwUqug== X-Google-Smtp-Source: AGHT+IHSOEXgulSM3SUDA6gQnkYMiiFPdtdDqhwAmJ1V+sFDJ7JNivVWRJ1WHN93KJX7Ma+KPQCF X-Received: by 2002:a17:903:22c3:b0:1db:f696:b09 with SMTP id y3-20020a17090322c300b001dbf6960b09mr598568plg.14.1708647985542; Thu, 22 Feb 2024 16:26:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708647985; cv=pass; d=google.com; s=arc-20160816; b=AkNiUL1OEgsdD0R665mj60nrTkU7yUVOWxPrIzpeqDv+x3OXfCI+0JvAVApYLfrk+f r44KzEoFpPR1RsoJvJeUFo55EY9l1OV6IjQGmtI04m+PmIZuI5O0NVfogZEDKUNCP2RU EDI4RW4d1BgPrP12L+i26Sa2gMJgUgEliABAJTLbIcjVPt4woqVtXKjU7ChHWAQteOoa 5sQs5zr5uA0cSBYsg0eUHcnuldWXYDLwyBl3bJhUNOFSoZ4dkior9YPhOXwZoUe1x9Fj gZxlsdskMxWwB/Og8C29wJhEpyHkR3jaXWmPWSxwyBXNtjc8PhwUYR6mFrn8rbZqlHsv klUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=XJ6KEatbrXYsK6wsv4m596yV8wvqn+lfZr/1ZUFpem4=; fh=xF7AhwBS2hHwVhVTLmRNczZnQ+ha5wmZldU9of8o4AU=; b=pD30ftQaB8gDcR3Vgm2KrInGXHHZ1ZuH7o7uSUJjyb37oMZeCVQUKo7sWRvK0eg5xV s6P5JxUGywysDWFp2FefpQNqHdPPi7WR2dmylI69g+pJSGEp1V9PeJeWV8tRy/A3N/zY IsdyqAnGn1+y6aRjA5cPwMxW2pyOMe324mhocQ5lyyh+LevVd7mqB9Jnt054Vf7sAKyG ubrycIIy7cVqCD4L+BiTNG65vggM2kzOPoAPn0/6RFDOmHVg15qVdOMlCJIvQxgTFEUn E5GMEPjY7aNBAsfMMOsTuiyws9iq6ro7Fq7MHUToCouFGGRfGSKIF3NKXmjhWYw6PwPk QFPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KXy4ozfP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77570-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77570-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. [139.178.88.99]) by mx.google.com with ESMTPS id im15-20020a170902bb0f00b001dc4af88728si2214526plb.631.2024.02.22.16.26.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 16:26:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77570-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=@kernel.org header.s=k20201202 header.b=KXy4ozfP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77570-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77570-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 3FAC0286682 for ; Fri, 23 Feb 2024 00:26:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C16665C; Fri, 23 Feb 2024 00:26:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KXy4ozfP" 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 C309F7F; Fri, 23 Feb 2024 00:26:18 +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=1708647978; cv=none; b=EThgnE8O2V7kJhHnp+Qxx5rMKPbJenp5jB3tFaio952e49t/QusbP5kB3uszqSAteeRjkzRfJ4ks3+u0VYssOdmFyLvuWPdC9mXhlzS62+0b62HLdijq/3yvHLYGvJEp5/ILQ8NAN0uBm4yOUr+nTn84f82a4K2J8KqnlKUmXsc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708647978; c=relaxed/simple; bh=TGAs5tijV86Bh0/zpNxrYr2pad3N4E7e0hYjM8ykr9k=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=ptUesRQCxcZd8m0yFpnwvWMLR7Q0g4+q9mgw9l0QP7O4jZNOlGHtlY1N+6nQfKAVPn9kokkxHd0/0RDBZmXYy4/TlEENRgNUS9N2Cr9oveKpT0GLH0/e1iZIeeNvdNBUrjGasDQcUkyK9ckdh2mVf2TvQonCoH6yEKR69RhYBF0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KXy4ozfP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A085CC43390; Fri, 23 Feb 2024 00:26:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708647978; bh=TGAs5tijV86Bh0/zpNxrYr2pad3N4E7e0hYjM8ykr9k=; h=Date:From:To:Cc:Subject:Reply-To:From; b=KXy4ozfPpXZ/Eixte90fdN8zPH+Km0ZxvoFm+1Svzhjr17BGIMuGEkmUp8HtnOcAO UVxcDTkPmKvquz4ajimzLD2Yt7Mm1Z1dXobcJh2tdMBJfAfufYh1P2mFL8s9w1vNp/ n8JnASXAwYFqICpCJl9MHns8P8OOzGb8K59/eW1jzL4hZOd+ZKa0eMdMN479OQkWLH t/ou2GVjxFP3A8dwq4USTnREZ8fp5K0zyyknDv8xqYToJm2ZPuYQrxnfx3xA2Or1lc QELPM2C3GrQg0DXGnrLolxQFrnY3Cjf+HUdd/EX/ggHsQYb8PVwWVgHb4zQcngyNWX +db5fVoxJHIbA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 46C75CE0B71; Thu, 22 Feb 2024 16:26:18 -0800 (PST) Date: Thu, 22 Feb 2024 16:26:18 -0800 From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, ankur.a.arora@oracle.com, tglx@linutronix.de, mark.rutland@arm.com Subject: [PATCH rcu 0/4] Refactor TASKS_RCU for lazy preemption Message-ID: <8c938bd5-6d62-4eff-9289-13b0d7ae8e17@paulmck-laptop> Reply-To: paulmck@kernel.org 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 Hello! This series refactors the NEED_TASKS_RCU option so that the conditional processing is in one place in kernel/rcu/Kconfig. This makes it easier to make sure that Tasks RCU is enabled in PREEMPT_AUTO kernels, given that such kernels are preemptible, even if only lazily so. After all, it takes only one lazy preemption from a trampoline to significantly degrade your kernel's actuarial statistics. 1. Create NEED_TASKS_RCU to factor out enablement logic. 2. Select new NEED_TASKS_RCU Kconfig option. 3. Select new NEED_TASKS_RCU Kconfig option. 4. Select new NEED_TASKS_RCU Kconfig option. Thanx, Paul ------------------------------------------------------------------------ arch/Kconfig | 4 ++-- kernel/bpf/Kconfig | 2 +- kernel/rcu/Kconfig | 6 +++++- kernel/trace/Kconfig | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-)