srcu: Add NUM_ACTIVE_SRCU_POLL_OLDSTATE
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 10 Jun 2024 03:12:19 +0000 (20:12 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 18 Jun 2024 17:13:37 +0000 (10:13 -0700)
commit395e73bd8d35fa9b8505e44f63a2a10abde09cce
treec9078205d38af47b7b934f8e090fd4a9a991b61f
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
srcu: Add NUM_ACTIVE_SRCU_POLL_OLDSTATE

This commit adds NUM_ACTIVE_SRCU_POLL_OLDSTATE, which gives the maximum
number of distinct return values from get_state_synchronize_rcu()
that can, at a given point in time, correspond to not-completed SRCU
grace periods.

Reported-by: Kent Overstreet <kent.overstreet@linux.dev>
Closes: https://lore.kernel.org/all/irycqy4sinjdgm2hkyix2bffunpcmuwgeufsx6nlljvqme3wiu@ify3zdnrmzph/
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/srcu.h