rcu-tasks: Move RCU-tasks initialization to before early_initcall()
authorUladzislau Rezki (Sony) <urezki@gmail.com>
Wed, 9 Dec 2020 20:27:31 +0000 (21:27 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 14 Dec 2020 23:31:13 +0000 (15:31 -0800)
commit1b04fa9900263b4e217ca2509fd778b32c2b4eb2
tree9d5e4a413b1e641955514dc16b4b2ba4a7924c5e
parent0477e92881850d44910a7e94fc2c46f96faa131f
rcu-tasks: Move RCU-tasks initialization to before early_initcall()

PowerPC testing encountered boot failures due to RCU Tasks not being
fully initialized until core_initcall() time.  This commit therefore
initializes RCU Tasks (along with Rude RCU and RCU Tasks Trace) just
before early_initcall() time, thus allowing waiting on RCU Tasks grace
periods from early_initcall() handlers.

Link: https://lore.kernel.org/rcu/87eekfh80a.fsf@dja-thinkpad.axtens.net/
Fixes: 36dadef23fcc ("kprobes: Init kprobes in early_initcall")
Tested-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/rcupdate.h
init/main.c
kernel/rcu/tasks.h