rcutorture: Add races with task-exit processing
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 24 Apr 2020 18:21:40 +0000 (11:21 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 19:01:44 +0000 (12:01 -0700)
commit4a5f133c15b77c4018e8d7996541868ac94afb4f
treea1c6e163474556b611a7490dd47bd1ad33db05c7
parentd02c6b52d12fa30eeabfaf5aefe12078eacb94b2
rcutorture: Add races with task-exit processing

Several variants of Linux-kernel RCU interact with task-exit processing,
including preemptible RCU, Tasks RCU, and Tasks Trace RCU.  This commit
therefore adds testing of this interaction to rcutorture by adding
rcutorture.read_exit_burst and rcutorture.read_exit_delay kernel-boot
parameters.  These kernel parameters control the frequency and spacing
of special read-then-exit kthreads that are spawned.

[ paulmck: Apply feedback from Dan Carpenter's static checker. ]
[ paulmck: Reduce latency to avoid false-positive shutdown hangs. ]
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/admin-guide/kernel-parameters.txt
include/linux/torture.h
kernel/rcu/rcutorture.c