Skip to content

Commit 1bc5bb9

Browse files
paulmckrcuNeeraj Upadhyay
authored andcommitted
rcutorture: Add SRCU ->same_gp_state and ->get_comp_state functions
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 <[email protected]> Signed-off-by: Neeraj Upadhyay <[email protected]>
1 parent cf3b150 commit 1bc5bb9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kernel/rcu/rcutorture.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,8 @@ static struct rcu_torture_ops srcu_ops = {
736736
.deferred_free = srcu_torture_deferred_free,
737737
.sync = srcu_torture_synchronize,
738738
.exp_sync = srcu_torture_synchronize_expedited,
739+
.same_gp_state = same_state_synchronize_srcu,
740+
.get_comp_state = get_completed_synchronize_srcu,
739741
.get_gp_state = srcu_torture_get_gp_state,
740742
.start_gp_poll = srcu_torture_start_gp_poll,
741743
.poll_gp_state = srcu_torture_poll_gp_state,
@@ -776,6 +778,8 @@ static struct rcu_torture_ops srcud_ops = {
776778
.deferred_free = srcu_torture_deferred_free,
777779
.sync = srcu_torture_synchronize,
778780
.exp_sync = srcu_torture_synchronize_expedited,
781+
.same_gp_state = same_state_synchronize_srcu,
782+
.get_comp_state = get_completed_synchronize_srcu,
779783
.get_gp_state = srcu_torture_get_gp_state,
780784
.start_gp_poll = srcu_torture_start_gp_poll,
781785
.poll_gp_state = srcu_torture_poll_gp_state,

0 commit comments

Comments
 (0)