srcu: Fill out polled grace-period APIs
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 14 Jun 2024 20:26:44 +0000 (13:26 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 18 Jun 2024 17:13:37 +0000 (10:13 -0700)
commite206f33e2c0774276a0497fe538472e12016a362
tree780fd57184e3c55aa2cf9a48d90e5a98a9d622a5
parentd7b0615cb8d24737df436c9c00788c0f35e02c7b
srcu: Fill out polled grace-period APIs

This commit adds the get_completed_synchronize_srcu() and the
same_state_synchronize_srcu() functions.  The first returns a cookie
that is always interpreted as corresponding to an expired grace period.
The second does an equality comparison of a pair of cookies.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
include/linux/srcu.h
kernel/rcu/srcutiny.c
kernel/rcu/srcutree.c