rcu-tasks: Fix the comments for tasks_rcu_exit_srcu_stall_timer
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
@@ -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
Quoted 15 lines
The
synchronize_srcu()has been removed bycommit("rcu-tasks: Eliminate deadlocks involving do_exit() and RCU tasks")inrcu_tasks_postscan. This commit therefore fix the comments oftasks_rcu_exit_srcu_stall_timer.Signed-off-by Zqiang <[email protected]>--- kernel/rcu/tasks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/rcu/tasks.h +0
-0
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
Paul E. McKenney
maintainerQuoted 16 lines · Z qiang
Quoted 16 lines
The
synchronize_srcu()has been removed bycommit("rcu-tasks: Eliminate deadlocks involving do_exit() and RCU tasks")inrcu_tasks_postscan. This commit therefore fix the comments oftasks_rcu_exit_srcu_stall_timer.Signed-off-by Zqiang <[email protected]>--- kernel/rcu/tasks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/rcu/tasks.h +0
-0@@ -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
ZqiangQuoted 4 lines
kernel/rcu/tasks.h +0
-1#endif --2.17.1
Quoted 27 lines · Z qiang
Quoted 16 lines
Quoted 16 lines
The
synchronize_srcu()has been removed bycommit("rcu-tasks: Eliminate deadlocks involving do_exit() and RCU tasks")inrcu_tasks_postscan. This commit therefore fix the comments oftasks_rcu_exit_srcu_stall_timer.Signed-off-by Zqiang <[email protected]>--- kernel/rcu/tasks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/rcu/tasks.h +0
-0@@ -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
ZqiangQuoted 4 lines
kernel/rcu/tasks.h +0
-1#endif --2.17.1
Quoted 5 lines · Zqiang
The
synchronize_srcu()has been removed bycommit("rcu-tasks: Eliminate deadlocks involving do_exit() and RCU tasks")inrcu_tasks_postscan. This commit therefore fix the comments oftasks_rcu_exit_srcu_stall_timer.Signed-off-by Zqiang <[email protected]>
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@@ -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