This series optimizes and remove some code under the condition that srcu_gp_start_if_needed() holds the srcu read lock. 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 Pingfan Liu (2): srcu: Remove needless rcu_seq_done() check while holding read lock srcu: Remove needless updating of srcu_have_cbs in srcu_gp_end() kernel/rcu/srcutree.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) -- 2.31.1