rcu: Elevate priority of offloaded callback threads
authorAlison Chaiken <achaiken@aurora.tech>
Tue, 11 Jan 2022 23:32:52 +0000 (15:32 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 2 Feb 2022 01:19:25 +0000 (17:19 -0800)
commitc8b16a65267e35ecc5621dbc81cbe7e5b0992fce
tree99ff340a284841b875aa4ca4b2d146ce97ebf181
parent54577e23fa0791599db1a3d86fc8e7a205d3da75
rcu: Elevate priority of offloaded callback threads

When CONFIG_PREEMPT_RT=y, the rcutree.kthread_prio command-line
parameter signals initialization code to boost the priority of rcuc
callbacks to the designated value.  With the additional
CONFIG_RCU_NOCB_CPU=y configuration and an additional rcu_nocbs
command-line parameter, the callbacks on the listed cores are
offloaded to new rcuop kthreads that are not pinned to the cores whose
post-grace-period work is performed.  While the rcuop kthreads perform
the same function as the rcuc kthreads they offload, the kthread_prio
parameter only boosts the priority of the rcuc kthreads.  Fix this
inconsistency by elevating rcuop kthreads to the same priority as the rcuc
kthreads.

Signed-off-by: Alison Chaiken <achaiken@aurora.tech>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c
kernel/rcu/tree_nocb.h