[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250923142036.112290-3-paulmck@kernel.org>
Date: Tue, 23 Sep 2025 07:20:05 -0700
From: "Paul E. McKenney" <paulmck@...nel.org>
To: rcu@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
kernel-team@...a.com,
rostedt@...dmis.org,
"Paul E. McKenney" <paulmck@...nel.org>,
Andrii Nakryiko <andrii@...nel.org>,
Alexei Starovoitov <ast@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
bpf@...r.kernel.org
Subject: [PATCH 03/34] rcu: Remove ->trc_blkd_node from task_struct
Now that RCU Tasks Trace has been re-implemented in terms of SRCU-fast,
the ->trc_blkd_node task_struct field is only initialized, and never
actually used. This commit therefore removes it.
Signed-off-by: Paul E. McKenney <paulmck@...nel.org>
Cc: Andrii Nakryiko <andrii@...nel.org>
Cc: Alexei Starovoitov <ast@...nel.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: <bpf@...r.kernel.org>
---
include/linux/sched.h | 1 -
init/init_task.c | 1 -
kernel/fork.c | 1 -
3 files changed, 3 deletions(-)
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 47bd062b21c2bc..3f840cfa941132 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -942,7 +942,6 @@ struct task_struct {
struct srcu_ctr __percpu *trc_reader_scp;
union rcu_special trc_reader_special;
struct list_head trc_holdout_list;
- struct list_head trc_blkd_node;
#endif /* #ifdef CONFIG_TASKS_TRACE_RCU */
struct sched_info sched_info;
diff --git a/init/init_task.c b/init/init_task.c
index e557f622bd9061..dd6226251689c8 100644
--- a/init/init_task.c
+++ b/init/init_task.c
@@ -167,7 +167,6 @@ struct task_struct init_task __aligned(L1_CACHE_BYTES) = {
.trc_reader_nesting = 0,
.trc_reader_special.s = 0,
.trc_holdout_list = LIST_HEAD_INIT(init_task.trc_holdout_list),
- .trc_blkd_node = LIST_HEAD_INIT(init_task.trc_blkd_node),
#endif
#ifdef CONFIG_CPUSETS
.mems_allowed_seq = SEQCNT_SPINLOCK_ZERO(init_task.mems_allowed_seq,
diff --git a/kernel/fork.c b/kernel/fork.c
index af673856499dca..69d34c123b9e5f 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1782,7 +1782,6 @@ static inline void rcu_copy_process(struct task_struct *p)
p->trc_reader_nesting = 0;
p->trc_reader_special.s = 0;
INIT_LIST_HEAD(&p->trc_holdout_list);
- INIT_LIST_HEAD(&p->trc_blkd_node);
#endif /* #ifdef CONFIG_TASKS_TRACE_RCU */
}
--
2.40.1
Powered by blists - more mailing lists