Skip to contentSkip to conversation

rcu-tasks: Fix the comments for tasks_rcu_exit_srcu_stall_timer

PATCH Applied Zqiang 2 participants 5 messages Feb 26, 2024 – Feb 27, 2024 RCU

lore
Share & tools
lore

Zqiang

author
#0 lore raw

PATCH 1/1 rcu-tasks: Fix the comments for tasks_rcu_exit_srcu_stall_timer

The synchronize_srcu() has been removed by commit("rcu-tasks: Eliminate deadlocks involving do_exit() and RCU tasks") in rcu_tasks_postscan. This commit therefore fix the comments of tasks_rcu_exit_srcu_stall_timer.

---
 kernel/rcu/tasks.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/tasks.h +1 -1
index 78d74c81cc24..d5319bbe8c98 100644
@@ -150,7 +150,7 @@ static struct rcu_tasks rt_name =							\
 
 #ifdef CONFIG_TASKS_RCU
 
-/* Report delay in synchronize_srcu() completion in rcu_tasks_postscan(). */
+/* Report delay of scan exiting tasklist in rcu_tasks_postscan(). */
 static void tasks_rcu_exit_srcu_stall(struct timer_list *unused);
 static DEFINE_TIMER(tasks_rcu_exit_srcu_stall_timer, tasks_rcu_exit_srcu_stall);
 #endif
Signature · 1 line
2.17.1
author
#1 lore raw
Quoted 15 lines

The synchronize_srcu() has been removed by commit("rcu-tasks: Eliminate deadlocks involving do_exit() and RCU tasks") in rcu_tasks_postscan. This commit therefore fix the comments of tasks_rcu_exit_srcu_stall_timer.

---
 kernel/rcu/tasks.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/tasks.h +0 -0
index 78d74c81cc24..d5319bbe8c98 100644

kernel/rcu/tasks.h static struct rcu_tasks rt_name = \ · line 155

Quoted 7 lines
kernel/rcu/tasks.h +1 -1
@@ -150,7 +150,7 @@ static struct rcu_tasks rt_name =                                                   \
 
 #ifdef CONFIG_TASKS_RCU
 
-/* Report delay in synchronize_srcu() completion in rcu_tasks_postscan(). */
+/* Report delay of scan exiting tasklist in rcu_tasks_postscan(). */
 static void tasks_rcu_exit_srcu_stall(struct timer_list *unused);
 static DEFINE_TIMER(tasks_rcu_exit_srcu_stall_timer, tasks_rcu_exit_srcu_stall);

Is this timer not necessary? any thoughts?

Thanks
Zqiang

Quoted 4 lines
kernel/rcu/tasks.h +0 -1
 #endif
--

2.17.1

maintainer
#2 lore raw
Quoted 16 lines · Z qiang
Quoted 16 lines

The synchronize_srcu() has been removed by commit("rcu-tasks: Eliminate deadlocks involving do_exit() and RCU tasks") in rcu_tasks_postscan. This commit therefore fix the comments of tasks_rcu_exit_srcu_stall_timer.

---
 kernel/rcu/tasks.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/tasks.h +0 -0
index 78d74c81cc24..d5319bbe8c98 100644
@@ -150,7 +150,7 @@ static struct rcu_tasks rt_name =                                                   \
 
Quoted 8 lines

kernel/rcu/tasks.h static struct rcu_tasks rt_name = \ · line 155

Quoted 6 lines
kernel/rcu/tasks.h +1 -1
 #ifdef CONFIG_TASKS_RCU
 
-/* Report delay in synchronize_srcu() completion in rcu_tasks_postscan(). */
+/* Report delay of scan exiting tasklist in rcu_tasks_postscan(). */
 static void tasks_rcu_exit_srcu_stall(struct timer_list *unused);
 static DEFINE_TIMER(tasks_rcu_exit_srcu_stall_timer, tasks_rcu_exit_srcu_stall);

Is this timer not necessary? any thoughts?

We have preemption points in the list traversals, and things like mutex contention on the do_exit() path could result in extremely long lists, so I believe we do need the timer.

But what did you have in mind?

Thanx, Paul

Quoted 8 lines

Thanks
Zqiang

Quoted 4 lines
kernel/rcu/tasks.h +0 -1
 #endif
--

2.17.1

author
#3 lore raw
Quoted 27 lines · Z qiang
Quoted 16 lines
Quoted 16 lines

The synchronize_srcu() has been removed by commit("rcu-tasks: Eliminate deadlocks involving do_exit() and RCU tasks") in rcu_tasks_postscan. This commit therefore fix the comments of tasks_rcu_exit_srcu_stall_timer.

---
 kernel/rcu/tasks.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/tasks.h +0 -0
index 78d74c81cc24..d5319bbe8c98 100644
@@ -150,7 +150,7 @@ static struct rcu_tasks rt_name =                                                   \
 
Quoted 8 lines

kernel/rcu/tasks.h static struct rcu_tasks rt_name = \ · line 155

Quoted 6 lines
kernel/rcu/tasks.h +1 -1
 #ifdef CONFIG_TASKS_RCU
 
-/* Report delay in synchronize_srcu() completion in rcu_tasks_postscan(). */
+/* Report delay of scan exiting tasklist in rcu_tasks_postscan(). */
 static void tasks_rcu_exit_srcu_stall(struct timer_list *unused);
 static DEFINE_TIMER(tasks_rcu_exit_srcu_stall_timer, tasks_rcu_exit_srcu_stall);

Is this timer not necessary? any thoughts?

Quoted 5 lines

We have preemption points in the list traversals, and things like mutex contention on the do_exit() path could result in extremely long lists, so I believe we do need the timer.

But what did you have in mind?

Thanks for the explanation, I ignored the scenario where the lists might be very long :)

Thanks
Zqiang

Quoted 11 lines

Thanx, Paul

Quoted 8 lines

Thanks
Zqiang

Quoted 4 lines
kernel/rcu/tasks.h +0 -1
 #endif
--

2.17.1

maintainer Applied
#4 lore raw
In reply to Zqiang
Quoted 5 lines · Zqiang

The synchronize_srcu() has been removed by commit("rcu-tasks: Eliminate deadlocks involving do_exit() and RCU tasks") in rcu_tasks_postscan. This commit therefore fix the comments of tasks_rcu_exit_srcu_stall_timer.

Queued, most likely for the v6.10 merge window, thank you!

Thanx, Paul

Quoted 20 lines
---
 kernel/rcu/tasks.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/tasks.h +1 -1
index 78d74c81cc24..d5319bbe8c98 100644
@@ -150,7 +150,7 @@ static struct rcu_tasks rt_name =							\
 
 #ifdef CONFIG_TASKS_RCU
 
-/* Report delay in synchronize_srcu() completion in rcu_tasks_postscan(). */
+/* Report delay of scan exiting tasklist in rcu_tasks_postscan(). */
 static void tasks_rcu_exit_srcu_stall(struct timer_list *unused);
 static DEFINE_TIMER(tasks_rcu_exit_srcu_stall_timer, tasks_rcu_exit_srcu_stall);
 #endif
Signature · 1 line
2.17.1