Skip to contentSkip to conversation

rcu-tasks: Remove unused trc_wait and holdouts

PATCH In review Zqiang 2 participants 3 messages Jun 10, 2022 – Jun 11, 2022 RCU

lore
Share & tools
lore

Zqiang

author
#0 lore raw

PATCH 1/1 rcu-tasks: Remove unused trc_wait and holdouts

Remove unused trc_wait waitqueue and local holdouts list.

---
 kernel/rcu/tasks.h | 3 ---
 1 file changed, 3 deletions(-)
kernel/rcu/tasks.h +0 -3
index 55e76db8b0d3..fcbd0ec33c86 100644
@@ -1190,8 +1190,6 @@ EXPORT_SYMBOL_GPL(rcu_trace_lock_map);
 
 #ifdef CONFIG_TASKS_TRACE_RCU
 
-static DECLARE_WAIT_QUEUE_HEAD(trc_wait);	// List of holdout tasks.
-
 // Record outstanding IPIs to each CPU.  No point in sending two...
 static DEFINE_PER_CPU(bool, trc_ipi_to_cpu);
 
@@ -1641,7 +1639,6 @@ static void rcu_tasks_trace_empty_fn(void *unused)
 static void rcu_tasks_trace_postgp(struct rcu_tasks *rtp)
 {
 	int cpu;
-	LIST_HEAD(holdouts);
 
 	// Wait for any lingering IPI handlers to complete.  Note that
 	// if a CPU has gone offline or transitioned to userspace in the
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 3 lines · Zqiang

Remove unused trc_wait waitqueue and local holdouts list.

Good eyes, thank you! I will fold this into the original commit with attribution.

Thanx, Paul

Quoted 28 lines
---
 kernel/rcu/tasks.h | 3 ---
 1 file changed, 3 deletions(-)
kernel/rcu/tasks.h +0 -3
index 55e76db8b0d3..fcbd0ec33c86 100644
@@ -1190,8 +1190,6 @@ EXPORT_SYMBOL_GPL(rcu_trace_lock_map);
 
 #ifdef CONFIG_TASKS_TRACE_RCU
 
-static DECLARE_WAIT_QUEUE_HEAD(trc_wait);	// List of holdout tasks.
-
 // Record outstanding IPIs to each CPU.  No point in sending two...
 static DEFINE_PER_CPU(bool, trc_ipi_to_cpu);
 
@@ -1641,7 +1639,6 @@ static void rcu_tasks_trace_empty_fn(void *unused)
 static void rcu_tasks_trace_postgp(struct rcu_tasks *rtp)
 {
 	int cpu;
-	LIST_HEAD(holdouts);
 
 	// Wait for any lingering IPI handlers to complete.  Note that
 	// if a CPU has gone offline or transitioned to userspace in the
Signature · 1 line
2.25.1
#2 lore raw
Quoted 5 lines · Zqiang

Remove unused trc_wait waitqueue and local holdouts list.

Good eyes, thank you! I will fold this into the original commit with attribution.

Thanks
Zqiang

Quoted 30 lines

Thanx, Paul

---
 kernel/rcu/tasks.h | 3 ---
 1 file changed, 3 deletions(-)
kernel/rcu/tasks.h index renamed from kernel/rcu/tasks.h +0 -0

55e76db8b0d3..fcbd0ec33c86 100644

kernel/rcu/tasks.h +0 -4
@@ -1190,8 +1190,6 @@ EXPORT_SYMBOL_GPL(rcu_trace_lock_map);
 
 #ifdef CONFIG_TASKS_TRACE_RCU
 
-static DECLARE_WAIT_QUEUE_HEAD(trc_wait);	// List of holdout tasks.
-
 // Record outstanding IPIs to each CPU.  No point in sending two...
 static DEFINE_PER_CPU(bool, trc_ipi_to_cpu);
 
@@ -1641,7 +1639,6 @@ static void rcu_tasks_trace_empty_fn(void 
 *unused)  static void rcu_tasks_trace_postgp(struct rcu_tasks *rtp)  {
 	int cpu;
-	LIST_HEAD(holdouts);
 
 	// Wait for any lingering IPI handlers to complete.  Note that
 	// if a CPU has gone offline or transitioned to userspace in the
--

2.25.1