This series optimizes and remove some code under the condition that srcu_gp_start_if_needed() holds the srcu read lock. v1 -> v2: add debug check in [1/2] drop original "[PATCH 2/2] srcu: Remove needless updating of srcu_have_cbs in srcu_gp_end()" Pingfan Liu (2): srcu: Remove needless rcu_seq_done() check while holding read lock srcu: Eliminate the case that snp_seq bigger than snap in srcu_funnel_gp_start() Cc: Lai Jiangshan <jiangshanlai@xxxxxxxxx> Cc: "Paul E. McKenney" <paulmck@xxxxxxxxxx> Cc: Frederic Weisbecker <frederic@xxxxxxxxxx> Cc: Josh Triplett <josh@xxxxxxxxxxxxxxxx> Cc: Steven Rostedt <rostedt@xxxxxxxxxxx> Cc: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx> To: rcu@xxxxxxxxxxxxxxx include/linux/rcupdate.h | 1 + kernel/rcu/srcutree.c | 27 +++++++++++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) -- 2.31.1