]> www.infradead.org Git - users/jedix/linux-maple.git/commit
srcu: Rename srcu_might_be_idle() to srcu_should_expedite()
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 15 Oct 2024 16:10:58 +0000 (09:10 -0700)
committerFrederic Weisbecker <frederic@kernel.org>
Mon, 28 Oct 2024 15:55:24 +0000 (16:55 +0100)
commit5bc455ff25762b1ac0463a005ccb3baf9f1fe7b8
tree697f0f2d360401208c98046ed24a80ee9754e23e
parent79a20a857009f12ab28c716d3ba218cf3ceee6f7
srcu: Rename srcu_might_be_idle() to srcu_should_expedite()

SRCU auto-expedites grace periods that follow a sufficiently long idle
period, and the srcu_might_be_idle() function is used to make this
decision.  However, the upcoming light-weight SRCU readers will not do
auto-expediting because doing so would cause the grace-period machinery
to invoke synchronize_rcu_expedited() twice, with IPIs all around.
However, software-engineering considerations force this determination
to remain in srcu_might_be_idle().

This commit therefore changes the name of srcu_might_be_idle() to
srcu_should_expedite(), thus moving from what it currently does to why
it does it, this latter being more future-proof.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Cc: <bpf@vger.kernel.org>
Reviewed-by: Neeraj Upadhyay <Neeraj.Upadhyay@amd.com>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
kernel/rcu/srcutree.c