rcu: Make RCU_BOOST default on CONFIG_PREEMPT_RT
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 15 Dec 2020 14:16:45 +0000 (15:16 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 4 Jan 2021 21:43:50 +0000 (13:43 -0800)
commit2341bc4a0311e4319ced6c2828bb19309dee74fd
treeaf32b8028f1d91efe6ca53421b344aa338daf5e1
parent5c8fe583cce542aa0b84adc939ce85293de36e5e
rcu: Make RCU_BOOST default on CONFIG_PREEMPT_RT

On PREEMPT_RT kernels, RCU callbacks are deferred to the `rcuc' kthread.
This can stall RCU grace periods due to lengthy preemption not only of RCU
readers but also of 'rcuc' kthreads, either of which prevent grace periods
from completing, which can in turn result in OOM.  Because PREEMPT_RT
kernels have more kthreads that can block grace periods, it is more
important for such kernels to enable RCU_BOOST.

This commit therefore makes RCU_BOOST the default on PREEMPT_RT.
RCU_BOOST can still be manually disabled if need be.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/Kconfig