srcu: No need to advance/accelerate if no callback enqueued
authorFrederic Weisbecker <frederic@kernel.org>
Tue, 3 Oct 2023 23:29:02 +0000 (01:29 +0200)
committerNeeraj Upadhyay (AMD) <neeraj.iitr10@gmail.com>
Mon, 11 Dec 2023 21:11:16 +0000 (02:41 +0530)
commit94c55b9e21979daa88e190bf971c47432a818ebe
treed017cdf353a7bcf9caa2b5b4b02ae5b3dafd48c4
parent20eb4142397cf3ec221de43f10ea149af462c572
srcu: No need to advance/accelerate if no callback enqueued

While in grace period start, there is nothing to accelerate and
therefore no need to advance the callbacks either if no callback is
to be enqueued.

Spare these needless operations in this case.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.iitr10@gmail.com>
kernel/rcu/srcutree.c