Commit 4ff475ed authored by Paul E. McKenney's avatar Paul E. McKenney

rcu: Additional information on RCU-tasks stall-warning messages

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
parent 01a81330
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/kthread.h> #include <linux/kthread.h>
#include <linux/tick.h>
#define CREATE_TRACE_POINTS #define CREATE_TRACE_POINTS
...@@ -461,6 +462,8 @@ EXPORT_SYMBOL_GPL(rcu_barrier_tasks); ...@@ -461,6 +462,8 @@ EXPORT_SYMBOL_GPL(rcu_barrier_tasks);
static void check_holdout_task(struct task_struct *t, static void check_holdout_task(struct task_struct *t,
bool needreport, bool *firstreport) bool needreport, bool *firstreport)
{ {
int cpu;
if (!ACCESS_ONCE(t->rcu_tasks_holdout) || if (!ACCESS_ONCE(t->rcu_tasks_holdout) ||
t->rcu_tasks_nvcsw != ACCESS_ONCE(t->nvcsw) || t->rcu_tasks_nvcsw != ACCESS_ONCE(t->nvcsw) ||
!ACCESS_ONCE(t->on_rq) || !ACCESS_ONCE(t->on_rq) ||
...@@ -477,6 +480,12 @@ static void check_holdout_task(struct task_struct *t, ...@@ -477,6 +480,12 @@ static void check_holdout_task(struct task_struct *t,
pr_err("INFO: rcu_tasks detected stalls on tasks:\n"); pr_err("INFO: rcu_tasks detected stalls on tasks:\n");
*firstreport = false; *firstreport = false;
} }
cpu = task_cpu(t);
pr_alert("%p: %c%c nvcsw: %lu/%lu holdout: %d idle_cpu: %d/%d\n",
t, ".I"[is_idle_task(t)],
"N."[cpu < 0 || !tick_nohz_full_cpu(cpu)],
t->rcu_tasks_nvcsw, t->nvcsw, t->rcu_tasks_holdout,
t->rcu_tasks_idle_cpu, cpu);
sched_show_task(t); sched_show_task(t);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment