diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-12-05 20:34:10 -0500 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-12-05 20:58:00 -0500 |
commit | a0e3a3aa2841d5720a277de53b6882eb8b2ef698 (patch) | |
tree | 67ff49933b2e94ee57f56f70d6c2f95674e36b83 | |
parent | 83977d273b609477e31af4c993697b75936acde0 (diff) |
rcutorture: Flag nonexistent RCU GP kthread
Currently, if the RCU grace-period kthread has not yet been created,
in which case the starvation-check code will print zero for the state,
which maps to TASK_RUNNING. This could clearly be quite confusing, so
this commit prints ~0, which does not map to any legal ->state value.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
-rw-r--r-- | kernel/rcu/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 81aa1cdc6bc9..e2315fb57b23 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c | |||
@@ -1201,7 +1201,7 @@ static void rcu_check_gp_kthread_starvation(struct rcu_state *rsp) | |||
1201 | rsp->name, j - gpa, | 1201 | rsp->name, j - gpa, |
1202 | rsp->gpnum, rsp->completed, | 1202 | rsp->gpnum, rsp->completed, |
1203 | rsp->gp_flags, rsp->gp_state, | 1203 | rsp->gp_flags, rsp->gp_state, |
1204 | rsp->gp_kthread ? rsp->gp_kthread->state : 0); | 1204 | rsp->gp_kthread ? rsp->gp_kthread->state : ~0); |
1205 | } | 1205 | } |
1206 | 1206 | ||
1207 | /* | 1207 | /* |