Re: [PATCH RFC 3/7] rcutorture: Remove unused check_boost_failed hook

From: Sebastian Andrzej Siewior

Date: Fri Nov 13 2026 - 13:30:21 EST


On 2026-11-11 16:38:21 [-0500], Joel Fernandes wrote:
> --- a/kernel/rcu/rcutorture.c
> +++ b/kernel/rcu/rcutorture.c
> @@ -43,6 +43,7 @@
> #include <linux/torture.h>
> #include <linux/vmalloc.h>
> #include <linux/sched/debug.h>
> +#include <linux/sched/sysctl.h>
> #include <linux/oom.h>
> #include <linux/tick.h>
> #include <linux/rcupdate_trace.h>

This looks like folding and rebase went wrong.

> @@ -425,7 +426,6 @@ struct rcu_torture_ops {
> void (*fqs)(void);
> void (*stats)(void);
> void (*gp_kthread_dbg)(void);
> - bool (*check_boost_failed)(unsigned long gp_state, int *cpup);
> int (*stall_dur)(void);
> void (*get_gp_data)(int *flags, unsigned long *gp_seq);
> void (*gp_slow_register)(atomic_t *rgssp);
> @@ -637,7 +637,6 @@ static struct rcu_torture_ops rcu_ops = {
> .cb_barrier = rcu_barrier,
> .fqs = rcu_force_quiescent_state,
> .gp_kthread_dbg = show_rcu_gp_kthreads,
> - .check_boost_failed = rcu_check_boost_fail,
> .stall_dur = rcu_jiffies_till_stall_check,
> .get_gp_data = rcutorture_get_gp_data,
> .gp_slow_register = rcu_gp_slow_register,

if I grep for rcu_check_boost_fail at this point I see the function, its
declaration but no users. That means it could be removed, too.

Sebastian