diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2022-12-20 04:02:20 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-01-04 04:28:34 +0300 |
commit | 748bf47a89d722c7e77f8700705e2189be14e99e (patch) | |
tree | 5652bd9bbe1fcc5e4763c48c5206d4e1c66c3118 /kernel/rcu/update.c | |
parent | 3d1adf7ada352b80e037509d26cdca156f75e830 (diff) | |
download | linux-748bf47a89d722c7e77f8700705e2189be14e99e.tar.xz |
rcu: Test synchronous RCU grace periods at the end of rcu_init()
This commit tests synchronize_rcu() and synchronize_rcu_expedited()
at the end of rcu_init(), in addition to the test already at the
beginning of that function. These tests are run only in kernels built
with CONFIG_PROVE_RCU=y.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/rcu/update.c')
-rw-r--r-- | kernel/rcu/update.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c index f5e6a2f95a2a..587b97c40191 100644 --- a/kernel/rcu/update.c +++ b/kernel/rcu/update.c @@ -220,6 +220,7 @@ void rcu_test_sync_prims(void) { if (!IS_ENABLED(CONFIG_PROVE_RCU)) return; + pr_info("Running RCU synchronous self tests\n"); synchronize_rcu(); synchronize_rcu_expedited(); } |