]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rcutorture: Add SRCU ->same_gp_state and ->get_comp_state functions
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 14 Jun 2024 23:47:12 +0000 (16:47 -0700)
committerNeeraj Upadhyay <neeraj.upadhyay@kernel.org>
Mon, 29 Jul 2024 02:05:44 +0000 (07:35 +0530)
This commit points the SRCU ->same_gp_state and ->get_comp_state fields
to same_state_synchronize_srcu() and get_completed_synchronize_srcu(),
allowing them to be tested.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay <neeraj.upadhyay@kernel.org>
kernel/rcu/rcutorture.c

index 836e27250a8b46fd3d1b4a8d0d7a65c7d2d88ad4..b2e6201b4569dbdbdb41a84e0f3b5f631ba24754 100644 (file)
@@ -736,6 +736,8 @@ static struct rcu_torture_ops srcu_ops = {
        .deferred_free  = srcu_torture_deferred_free,
        .sync           = srcu_torture_synchronize,
        .exp_sync       = srcu_torture_synchronize_expedited,
+       .same_gp_state  = same_state_synchronize_srcu,
+       .get_comp_state = get_completed_synchronize_srcu,
        .get_gp_state   = srcu_torture_get_gp_state,
        .start_gp_poll  = srcu_torture_start_gp_poll,
        .poll_gp_state  = srcu_torture_poll_gp_state,
@@ -776,6 +778,8 @@ static struct rcu_torture_ops srcud_ops = {
        .deferred_free  = srcu_torture_deferred_free,
        .sync           = srcu_torture_synchronize,
        .exp_sync       = srcu_torture_synchronize_expedited,
+       .same_gp_state  = same_state_synchronize_srcu,
+       .get_comp_state = get_completed_synchronize_srcu,
        .get_gp_state   = srcu_torture_get_gp_state,
        .start_gp_poll  = srcu_torture_start_gp_poll,
        .poll_gp_state  = srcu_torture_poll_gp_state,