rcutorture: Avoid RCU CPU stall warning and RT throttling
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sun, 31 Jan 2016 05:32:09 +0000 (21:32 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 31 Mar 2016 20:39:47 +0000 (13:39 -0700)
commit620316e52a923811fe9a77ceb43eebf5f507d375
treec5f6cea89e511b348ed11bb18e707dfa260cbe8e
parentdf37e66bfdbb57e8cae7dbf39a0c66b1b8701338
rcutorture: Avoid RCU CPU stall warning and RT throttling

Running rcuperf can result in RCU CPU stall warnings and RT throttling.
These occur because on of the real-time writer processes does
ftrace_dump() while still running at real-time priority.  This commit
therefore prevents these problems by setting the writer thread back to
SCHED_NORMAL (AKA SCHED_OTHER) before doing ftrace_dump().

In addition, this commit adds a small fixed delay before dumping ftrace
buffer in order to decrease the probability that this dumping will
interfere with other writers' grace periods.

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