rcu-tasks: Drive synchronous grace periods from calling task
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 19 Apr 2022 22:41:38 +0000 (15:41 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 20 Jun 2022 16:22:27 +0000 (09:22 -0700)
commit4a8cc433b8bf3106cf7b1173a936c62d77b40b40
treeea8576ebb7fefc49ad0d5ea21886fec12ec6d968
parent68cb47204db478302a37adb2aaa26a05882dbaa1
rcu-tasks: Drive synchronous grace periods from calling task

This commit causes synchronous grace periods to be driven from the task
invoking synchronize_rcu_*(), allowing these functions to be invoked from
the mid-boot dead zone extending from when the scheduler was initialized
to to point that the various RCU tasks grace-period kthreads are spawned.
This change will allow the self-tests to run in a consistent manner.

Reported-by: Matthew Wilcox <willy@infradead.org>
Reported-by: Zhouyi Zhou <zhouzhouyi@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tasks.h