rcutorture: Verify RCU reader prevents full polling from completing
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 2 Aug 2022 00:33:24 +0000 (17:33 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 31 Aug 2022 12:08:07 +0000 (05:08 -0700)
commitd594231aa50a0f113cfb4749da5162e6a0c3fa73
tree7fa42630a7199483c9aab1906754d4b6d42f7c75
parented7d2f1abee48a90fae5fdf5c60d71803a5a1d10
rcutorture: Verify RCU reader prevents full polling from completing

This commit adds a test to rcu_torture_writer() that verifies that a
->get_gp_state_full() and ->poll_gp_state_full() polled grace-period
sequence does not claim that a grace period elapsed within the confines
of the corresponding read-side critical section.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/rcutorture.c