]> asedeno.scripts.mit.edu Git - linux.git/commit
rcutorture: Disable RT throttling for boost tests
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Sun, 10 Jun 2018 23:45:43 +0000 (16:45 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Jul 2018 22:42:06 +0000 (15:42 -0700)
commit450efca7182a516a12dfcc0311abfd242bde42b2
treedb9a102d4f1eb10ca7e5a509f884a6024b51bc6b
parentbf1bef50bee13b2292929f4b86118302a3827a32
rcutorture: Disable RT throttling for boost tests

Currently rcutorture is not able to torture RCU boosting properly. This
is because the rcutorture's boost threads which are doing the torturing
may be throttled due to RT throttling.

This patch makes rcutorture use the right torture technique (unthrottled
rcutorture boost tasks) for torturing RCU so that the test fails
correctly when no boost is available.

Currently this requires accessing sysctl_sched_rt_runtime directly, but
that should be Ok since rcutorture is test code. Such direct access is
also only possible if rcutorture is used as a built-in so make it
conditional on that.

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/rcutorture.c