Re: [PATCH for-v7.5 4/5] rcu-tasks: Use pr_debug() for callback contend/collapse messages

From: Joel Fernandes

Date: Thu Nov 12 2026 - 20:19:45 EST


On Thu, Nov 12, 2026 at 7:49 PM Joel Fernandes <jfern@xxxxxxxxxx> wrote:
>
> From: Song Liu <song@xxxxxxxxxx>
>
> Commit 5de907d24919 ("rcu-tasks: Disable callback contend/collapse
> messages by default") added the rcupdate.rcu_task_collapse_debug module
> parameter to gate the three pr_info() messages that report RCU Tasks
> switching between CPU-0 and per-CPU callback queuing.
>
> The kernel already has a mechanism for debug-only messages that are off
> by default: pr_debug(). Use pr_debug() for these messages, and remove
> the rcu_task_collapse_debug module parameter, its documentation, and
> its boot-time announcement.
>
> The messages stay off by default. On CONFIG_DYNAMIC_DEBUG=y kernels,
> they can be enabled at boot with:
>
> dyndbg="file kernel/rcu/tasks.h +p"
>
> or at runtime with:
>
> echo 'file kernel/rcu/tasks.h +p' > /proc/dynamic_debug/control
>
> Assisted-by: Claude:claude-opus-5
> Signed-off-by: Song Liu <song@xxxxxxxxxx>
> Signed-off-by: Joel Fernandes <jfern@xxxxxxxxxx>

Btw, even though I included this in the 'for-7.5', I am planning to
send it for 7.4-rc as we discussed, so please ignore it in this set.

thanks,

Joel Fernandes