rcutorture: Flag nonexistent RCU GP kthread
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 6 Dec 2015 01:34:10 +0000 (17:34 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 6 Dec 2015 01:58:00 +0000 (17:58 -0800)
commita0e3a3aa2841d5720a277de53b6882eb8b2ef698
tree67ff49933b2e94ee57f56f70d6c2f95674e36b83
parent83977d273b609477e31af4c993697b75936acde0
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>
kernel/rcu/tree.c
This page took 0.024621 seconds and 5 git commands to generate.