From: sashiko-bot@kernel.org
To: "Josef Bacik" <josef@bacik.io>
Cc: bpf@vger.kernel.org, linux-trace-kernel@vger.kernel.org
Subject: Re: [PATCH] rcu-tasks-trace: Let TASKS_TRACE_RCU_NO_MB default on without RCU_EXPERT
Date: Tue, 01 Dec 2026 19:25:19 +0000 [thread overview]
Message-ID: <sashiko-outbox-244051@kernel.org> (raw)
In-Reply-To: <179614881389.4.17347597738097573591@bacik.io>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] rcu-tasks-trace: missing Fixes: trailer for
TASKS_TRACE_RCU_NO_MB default fix
--
commit d71d7e9e103039a6b076033176283fcd4cbeaded
Author: Josef Bacik <josef@toxicpanda.com>
> rcu-tasks-trace: Let TASKS_TRACE_RCU_NO_MB default on without RCU_EXPERT
>
> 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 <josef@toxicpanda.com>
> Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
[Severity: Low]
This fixes the TASKS_TRACE_RCU_NO_MB Kconfig default when RCU_EXPERT is
not enabled. Should this include:
Fixes: 1a72f4bb6f3e ("rcu: Add noinstr-fast rcu_read_{,un}lock_tasks_trace() APIs")
--
Sashiko AI review · https://sashiko.dev/#/patchset/179614881389.4.17347597738097573591@bacik.io?part=1
next parent reply other threads:[~2026-12-01 19:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <179614881389.4.17347597738097573591@bacik.io>
2026-12-01 19:25 ` sashiko-bot [this message]
2026-12-01 19:44 ` [PATCH] rcu-tasks-trace: Let TASKS_TRACE_RCU_NO_MB default on without RCU_EXPERT Joel Fernandes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-244051@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=josef@bacik.io \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox