rcutorture: Add writer-side tests of polling grace-period API
authorPaul E. McKenney <paulmck@kernel.org>
Sat, 14 Nov 2020 04:43:59 +0000 (20:43 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 4 Jan 2021 21:53:40 +0000 (13:53 -0800)
commit0fd0548db13346bfb3bb23860ab270a32d6e385a
tree0cd6771cf902a408296687e24694f8ba5b9ed023
parentfd56f64b4e3b9c53fbb12ef74c6f1f5fde4cc1c8
rcutorture: Add writer-side tests of polling grace-period API

This commit adds writer-side testing of the polling grace-period API.
One test verifies that the polling API sees a grace period caused by
some other mechanism.  Another test verifies that using the polling API
to wait for a grace period does not result in too-short grace periods.
A third test verifies that the polling API does not report
completion within a read-side critical section.  A fourth and final
test verifies that the polling API does report completion given an
intervening grace period.

Link: https://lore.kernel.org/rcu/20201112201547.GF3365678@moria.home.lan/
Reported-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/rcutorture.c