rcutorture: Add reader-side tests of polling grace-period API
authorPaul E. McKenney <paulmck@kernel.org>
Sun, 15 Nov 2020 20:45:57 +0000 (12:45 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 4 Jan 2021 21:53:40 +0000 (13:53 -0800)
commitbc480a6354ef2e15c26c3bdbd0db647026e788a7
treef36fbedbbc1e0039ce0196c87a4a6cbc2f63b244
parent0fd0548db13346bfb3bb23860ab270a32d6e385a
rcutorture: Add reader-side tests of polling grace-period API

This commit adds reader-side testing of the polling grace-period API.
This testing verifies that a cookie obtained in an SRCU read-side critical
section does not get a true return from poll_state_synchronize_srcu()
within that same critical section.

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