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

Unified · Split

kernel/rcu/tasks.h+2−4
@@ -67,7 +67,6 @@ struct rcu_tasks_percpu { · 66 unmodified lines
67 * @gp_start: Most recent grace-period start in jiffies.67 * @gp_start: Most recent grace-period start in jiffies.
68 * @tasks_gp_seq: Number of grace periods completed since boot in upper bits.68 * @tasks_gp_seq: Number of grace periods completed since boot in upper bits.
69 * @n_ipis: Number of IPIs sent to encourage grace periods to end.69 * @n_ipis: Number of IPIs sent to encourage grace periods to end.
70 * @n_ipis_fails: Number of IPI-send failures.
71 * @kthread_ptr: This flavor's grace-period/callback-invocation kthread.70 * @kthread_ptr: This flavor's grace-period/callback-invocation kthread.
72 * @lazy_jiffies: Number of jiffies to allow callbacks to be lazy.71 * @lazy_jiffies: Number of jiffies to allow callbacks to be lazy.
73 * @pregp_func: This flavor's pre-grace-period function (optional).72 * @pregp_func: This flavor's pre-grace-period function (optional).
@@ -102,7 +101,6 @@ struct rcu_tasks { · 28 unmodified lines
102 unsigned long gp_start;101 unsigned long gp_start;
103 unsigned long tasks_gp_seq;102 unsigned long tasks_gp_seq;
104 unsigned long n_ipis;103 unsigned long n_ipis;
105 unsigned long n_ipis_fails;
106 struct task_struct *kthread_ptr;104 struct task_struct *kthread_ptr;
107 unsigned long lazy_jiffies;105 unsigned long lazy_jiffies;
108 rcu_tasks_gp_func_t gp_func;106 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
735 if (havecbs && haveurgent && haveurgentcbs)733 if (havecbs && haveurgent && haveurgentcbs)
736 break;734 break;
737 }735 }
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",
739 rtp->kname,737 rtp->kname,
740 tasks_gp_state_getname(rtp), data_race(rtp->gp_state),738 tasks_gp_state_getname(rtp), data_race(rtp->gp_state),
741 jiffies - data_race(rtp->gp_jiffies),739 jiffies - data_race(rtp->gp_jiffies),
742 data_race(rcu_seq_current(&rtp->tasks_gp_seq)),740 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),
744 ".k"[!!data_race(rtp->kthread_ptr)],742 ".k"[!!data_race(rtp->kthread_ptr)],
745 ".C"[havecbs],743 ".C"[havecbs],
746 ".u"[haveurgent],744 ".u"[haveurgent],