From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A93E606A33B for ; Tue, 1 Dec 2026 19:45:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=JL7x+tgV; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=K1m1KDZQ DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=QYdt+wL2mE4pJSIVWAKVVG6O1Als+ImiKH3EYzxTQHs=; b=JL7x+tgVz5lPQ+g33eHOHmH1gn cS1n4PsEXrfaXXTc+0//Z3rDos/dzdxsvRDL3AoYQGNaLBcoLHiVkW4zpUXvCURgBe3R5LiwBQkYV xff9fRyLiZRkEuyKODKTP23Xc/tK9SDFsoLl0R0LnUXdvEYQmNy+dew6anLzjef/vFHvMqGFK7qLq 98LvRiSy7cYmeHVIFbG8a5FdFhqQuzdNVK8Z/03tItYz/n+Zz25PjNf/jlqpXbgThlwrdZTRv0gHe vMDa8YeKsWF1uaU/X9JtIdLCaXPM7+XoZVHv9h81Qad6BA7sCnFvAKMVocU2kc3sRf3FK05ZTkm0a lvbtTQbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYTmT-00000009Ft5-2rz8; Tue, 01 Dec 2026 19:44:49 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYTmT-00000009FsW-1Nq3 for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2026 19:44:49 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with UTF8SMTP id 9FB8E43B10; Tue, 1 Dec 2026 19:44:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id 22D681F00A17; Tue, 1 Dec 2026 19:44:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796154288; bh=QYdt+wL2mE4pJSIVWAKVVG6O1Als+ImiKH3EYzxTQHs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=K1m1KDZQu3EwB7/sb3YxUbssg28Io6b+faeaH6xyxz9YyvcnNU/m+BRIgS7lr16wV S2TxmlEYogdiN8rzkrW4LX5flrHTGUc7uAjlGMO2k0ZFYE7qn0Ffo1JtG+TLaOsHtK CWM51e+b7Qnse76pjJ/BTzo5Li3C6W8SsFWX4yMx+d+R9pTm+iCM4mtGT9hRyCDii2 kYuC5IqKYj0gVhtjha7TO3jmVFYH703ZQUA83LC06xKje/hYMUq3QULkE3voV4EMTR EffudnNZojk7sgm+rxtaScbubMHJu9AOIOo6322gwtj7Rnz2WFE6VvMdji8bfSF8+Z Q7WlZ1V3rbuzQ== Date: Tue, 1 Dec 2026 14:44:47 -0500 From: Joel Fernandes To: Josef Bacik Cc: "Paul E. McKenney" , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Uladzislau Rezki , Alexei Starovoitov , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Masami Hiramatsu , Mark Rutland , Peter Zijlstra , Thomas Gleixner , Daniel Borkmann , Andrii Nakryiko , Puranjay Mohan , rcu@vger.kernel.org, bpf@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rcu-tasks-trace: Let TASKS_TRACE_RCU_NO_MB default on without RCU_EXPERT Message-ID: <20261201194447.GA3277646@joelbox> References: <179614881389.4.17347597738097573591@bacik.io> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <179614881389.4.17347597738097573591@bacik.io> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-15.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 12/01, Josef Bacik wrote: > From: Josef Bacik > > TASKS_TRACE_RCU_NO_MB defaults to ARCH_WANTS_NO_INSTR, on the grounds > (see 1a72f4bb6f3e) that architectures with noinstr entry code only ever > run tracing where RCU is watching and so can dispense with the read-side > smp_mb() in rcu_read_lock_trace() and friends. But the option also > depends on RCU_EXPERT, and a Kconfig default is not applied to a symbol > whose dependencies are unmet, so on an ordinary RCU_EXPERT=n build of > such an architecture the option is simply absent and every Tasks Trace > reader pays for two full barriers that the architecture does not need. > > Keep the prompt behind RCU_EXPERT, so that overriding the default in > either direction remains an expert decision, but let the default itself > apply unconditionally. On x86-64 and arm64 defconfig this turns the > barriers off, as intended; architectures without ARCH_WANTS_NO_INSTR > are unchanged. > > Signed-off-by: Josef Bacik > Reviewed-by: Paul E. McKenney Applied for 7.5, thanks! Joel Fernandes > --- > Alexei asked for this one on its own. It hasn't changed since v6 apart > from Paul's Reviewed-by. > > v6: https://lore.kernel.org/all/20260929-b4-rcu-tasks-preempt-qs-v6-1-c111ee02caca@toxicpanda.com/ > > kernel/rcu/Kconfig | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/rcu/Kconfig b/kernel/rcu/Kconfig > index bc9483c0b5d84..7a9fe0ad0a9fe 100644 > --- a/kernel/rcu/Kconfig > +++ b/kernel/rcu/Kconfig > @@ -142,8 +142,8 @@ config TASKS_TRACE_RCU > default n > > config TASKS_TRACE_RCU_NO_MB > - bool "Override RCU Tasks Trace inclusion of read-side memory barriers" > - depends on RCU_EXPERT && TASKS_TRACE_RCU > + bool "Override RCU Tasks Trace inclusion of read-side memory barriers" if RCU_EXPERT > + depends on TASKS_TRACE_RCU > default ARCH_WANTS_NO_INSTR > help > This option prevents the use of read-side memory barriers in > > base-commit: 19cc08c1a6a650f8e54c0461ff198be6448f425d >