Skip to content

Commit 92a708d

Browse files
paulmckrcuFrederic Weisbecker
authored andcommitted
rcu-tasks: Add printk()s to localize boot-time self-test hang
Currently, rcu_tasks_initiate_self_tests() prints a message and then initiates self tests on up to three different RCU Tasks flavors. If one of the flavors has a grace-period hang, it is not easy to work out which of the three hung. This commit therefore prints a message prior to each individual test. Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
1 parent 0bb80ec commit 92a708d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kernel/rcu/tasks.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1979,20 +1979,22 @@ static void test_rcu_tasks_callback(struct rcu_head *rhp)
19791979

19801980
static void rcu_tasks_initiate_self_tests(void)
19811981
{
1982-
pr_info("Running RCU-tasks wait API self tests\n");
19831982
#ifdef CONFIG_TASKS_RCU
1983+
pr_info("Running RCU Tasks wait API self tests\n");
19841984
tests[0].runstart = jiffies;
19851985
synchronize_rcu_tasks();
19861986
call_rcu_tasks(&tests[0].rh, test_rcu_tasks_callback);
19871987
#endif
19881988

19891989
#ifdef CONFIG_TASKS_RUDE_RCU
1990+
pr_info("Running RCU Tasks Rude wait API self tests\n");
19901991
tests[1].runstart = jiffies;
19911992
synchronize_rcu_tasks_rude();
19921993
call_rcu_tasks_rude(&tests[1].rh, test_rcu_tasks_callback);
19931994
#endif
19941995

19951996
#ifdef CONFIG_TASKS_TRACE_RCU
1997+
pr_info("Running RCU Tasks Trace wait API self tests\n");
19961998
tests[2].runstart = jiffies;
19971999
synchronize_rcu_tasks_trace();
19982000
call_rcu_tasks_trace(&tests[2].rh, test_rcu_tasks_callback);

0 commit comments

Comments
 (0)