diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-04-16 14:02:25 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-05-27 15:58:02 -0400 |
commit | 81e701e4376232b2779f52f15e3b7413131bd8e4 (patch) | |
tree | fd4da2e7259f5e448048c1db7f0276d87ec24ebd | |
parent | 82efed06d5e370f1526ec93ff4c2c2496542f615 (diff) |
rcu: Add more debug info on "kthread starved" RCU CPU stall warnings
This commit adds grace number and command-flags information to the
"kthread starved" message that is sometimes printed out as part of
RCU CPU stall warnings. This message is caused by the corresponding
RCU grace-period kthread not having run for at least two seconds, and
this added information can be helpful when debugging.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r-- | kernel/rcu/tree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 7d369b829598..52f064ac7b49 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
@@ -1136,8 +1136,9 @@ static void rcu_check_gp_kthread_starvation(struct rcu_state *rsp) | |||
1136 | j = jiffies; | 1136 | j = jiffies; |
1137 | gpa = READ_ONCE(rsp->gp_activity); | 1137 | gpa = READ_ONCE(rsp->gp_activity); |
1138 | if (j - gpa > 2 * HZ) | 1138 | if (j - gpa > 2 * HZ) |
1139 | pr_err("%s kthread starved for %ld jiffies!\n", | 1139 | pr_err("%s kthread starved for %ld jiffies! g%lu c%lu f%#x\n", |
1140 | rsp->name, j - gpa); | 1140 | rsp->name, j - gpa, |
1141 | rsp->gpnum, rsp->completed, rsp->gp_flags); | ||
1141 | } | 1142 | } |
1142 | 1143 | ||
1143 | /* | 1144 | /* |