Skip to content

Commit 45c7c67

Browse files
Feng Leeurezki
authored andcommitted
srcu: Remove redundant GP sequence checks in srcu_funnel_gp_start
We will perform GP sequence checking at the beginning of srcu_gp_start, thus making it safe to remove duplicate GP sequence checks prior to calling srcu_gp_start. Signed-off-by: Feng Lee <379943137@qq.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
1 parent cfb07b0 commit 45c7c67

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/rcu/srcutree.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,6 @@ static void srcu_funnel_gp_start(struct srcu_struct *ssp, struct srcu_data *sdp,
10771077
/* If grace period not already in progress, start it. */
10781078
if (!WARN_ON_ONCE(rcu_seq_done(&sup->srcu_gp_seq, s)) &&
10791079
rcu_seq_state(sup->srcu_gp_seq) == SRCU_STATE_IDLE) {
1080-
WARN_ON_ONCE(ULONG_CMP_GE(sup->srcu_gp_seq, sup->srcu_gp_seq_needed));
10811080
srcu_gp_start(ssp);
10821081

10831082
// And how can that list_add() in the "else" clause

0 commit comments

Comments
 (0)