History

rcu-tasks: Remove unused struct rcu_tasks's->n_ipis_fails variables

The RCU tasks trace has been reimplemented by 'commit c27cea4416a3 ("rcu: Re-implement RCU Tasks Trace in terms of SRCU-fast")', the rcu_tasks structure's->n_ipis_fails is no longer used, this commit therefore remove it.

Zqiang committed 4 months ago

Commit 5b79f1d1 parent ade2e3c1 file · +2 −4Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/rcu/tasks.h+2−4
@@ -67,7 +67,6 @@ struct rcu_tasks_percpu { · 66 unmodified lines
6767 * @gp_start: Most recent grace-period start in jiffies.
6868 * @tasks_gp_seq: Number of grace periods completed since boot in upper bits.
6969 * @n_ipis: Number of IPIs sent to encourage grace periods to end.
70− * @n_ipis_fails: Number of IPI-send failures.
7170 * @kthread_ptr: This flavor's grace-period/callback-invocation kthread.
7271 * @lazy_jiffies: Number of jiffies to allow callbacks to be lazy.
7372 * @pregp_func: This flavor's pre-grace-period function (optional).
@@ -102,7 +101,6 @@ struct rcu_tasks { · 28 unmodified lines
102101 unsigned long gp_start;
103102 unsigned long tasks_gp_seq;
104103 unsigned long n_ipis;
105− unsigned long n_ipis_fails;
106104 struct task_struct *kthread_ptr;
107105 unsigned long lazy_jiffies;
108106 rcu_tasks_gp_func_t gp_func;
@@ -735,12 +733,12 @@ static void show_rcu_tasks_generic_gp_kthread(struct rcu_tasks *rtp, char *s) · 626 unmodified lines
735733 if (havecbs && haveurgent && haveurgentcbs)
736734 break;
737735 }
738− pr_info("%s: %s(%d) since %lu g:%lu i:%lu/%lu %c%c%c%c l:%lu %s\n",
736+ pr_info("%s: %s(%d) since %lu g:%lu i:%lu %c%c%c%c l:%lu %s\n",
739737 rtp->kname,
740738 tasks_gp_state_getname(rtp), data_race(rtp->gp_state),
741739 jiffies - data_race(rtp->gp_jiffies),
742740 data_race(rcu_seq_current(&rtp->tasks_gp_seq)),
743− data_race(rtp->n_ipis_fails), data_race(rtp->n_ipis),
741+ data_race(rtp->n_ipis),
744742 ".k"[!!data_race(rtp->kthread_ptr)],
745743 ".C"[havecbs],
746744 ".u"[haveurgent],