OSDN Git Service

rcu: Set RCU CPU stall times via sysfs
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 13 Jan 2012 23:32:18 +0000 (15:32 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 21 Feb 2012 17:03:48 +0000 (09:03 -0800)
commit13cfcca0e4e2d4cee1d0183c049eb34e54ac976e
tree2aa48f0db717ae7741602022e4020f22cc3cea7f
parent27565d64a4e564e72c22d8c91a3cfcb9442383e8
rcu: Set RCU CPU stall times via sysfs

The default CONFIG_RCU_CPU_STALL_TIMEOUT value of 60 seconds has served
Linux users well for production use for quite some time.  However, for
debugging, there will be more than three minutes between subsequent
stall-warning messages.  This can be an annoyingly long wait if you
are trying to work out where the offending infinite loop is hiding.

Therefore, this commit provides a rcu_cpu_stall_timeout sysfs
parameter that may be adjusted at boot time and at runtime to speed
up debugging.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.c
kernel/rcutree.h