mbox series

[PATCHv2,0/2] srcu: Optimize when srcu_gp_start_if_needed() holds read lock

Message ID 20221123135638.79021-1-kernelfans@gmail.com (mailing list archive)
Headers show
Series srcu: Optimize when srcu_gp_start_if_needed() holds read lock | expand

Message

Pingfan Liu Nov. 23, 2022, 1:56 p.m. UTC
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@gmail.com>
Cc: "Paul E. McKenney" <paulmck@kernel.org>
Cc: Frederic Weisbecker <frederic@kernel.org>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
To: rcu@vger.kernel.org

 include/linux/rcupdate.h |  1 +
 kernel/rcu/srcutree.c    | 27 +++++++++++++++------------
 2 files changed, 16 insertions(+), 12 deletions(-)