aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/torture.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-11-16 16:46:06 -0800
committerPaul E. McKenney <paulmck@kernel.org>2021-01-06 17:17:10 -0800
commit18fbf307b7319af3725c36e16af6ae9f35a8699c (patch)
tree5fbed42b404e2c2bb4e8c04e9374689fb3ebf02b /kernel/torture.c
parentrcutorture: Require entire stutter period be post-boot (diff)
downloadlinux-dev-18fbf307b7319af3725c36e16af6ae9f35a8699c.tar.xz
linux-dev-18fbf307b7319af3725c36e16af6ae9f35a8699c.zip
rcutorture: Make synctype[] and nsynctype be static global
Full testing of the new SRCU polling API requires that the fake writers also use it in order to test concurrent calls to all of the API members, especially start_poll_synchronize_srcu(). This commit prepares the ground for this by making the synctype[] and nsynctype variables be static globals so that the rcu_torture_fakewriter() function can access them. Initialization of these variables is moved from rcu_torture_writer() to a new rcu_torture_write_types() function that is invoked from rcu_torture_init() just before the first writer kthread is spawned. 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>
Diffstat (limited to 'kernel/torture.c')
0 files changed, 0 insertions, 0 deletions