]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rcutorture: Add ->cond_sync_exp_full function to rcu_ops structure
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 22 Oct 2024 21:29:11 +0000 (14:29 -0700)
committerUladzislau Rezki (Sony) <urezki@gmail.com>
Sat, 14 Dec 2024 16:03:07 +0000 (17:03 +0100)
The rcu_ops structure currently lacks a ->cond_sync_exp_full function,
which prevents testign of conditional full-state polled grace periods.
This commit therefore adds them, enabling testing this option.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
kernel/rcu/rcutorture.c

index 6067f2740247d8603f1b342b5a31f4fb20f4f469..658ac46581d8130de56f3028ce27186914a392b9 100644 (file)
@@ -577,6 +577,7 @@ static struct rcu_torture_ops rcu_ops = {
        .start_gp_poll_exp_full = start_poll_synchronize_rcu_expedited_full,
        .poll_gp_state_exp      = poll_state_synchronize_rcu,
        .cond_sync_exp          = cond_synchronize_rcu_expedited,
+       .cond_sync_exp_full     = cond_synchronize_rcu_expedited_full,
        .call                   = call_rcu_hurry,
        .cb_barrier             = rcu_barrier,
        .fqs                    = rcu_force_quiescent_state,