mbox series

[0/2] srcu: Optimize when srcu_gp_start_if_needed() holds

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

Message

Pingfan Liu Nov. 20, 2022, 3:40 a.m. UTC
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@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

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(-)