torture: Allow inter-stutter interval to be specified
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 9 Apr 2019 21:44:49 +0000 (14:44 -0700)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 28 May 2019 16:06:09 +0000 (09:06 -0700)
commitff3bf92d90d396e51eb78c5ecde11a994ab7a179
tree6ba832a9d6128bf12478f8df3b5710431d2c9668
parente8516c64fe97e27a28fd5bc65b616508ae0020cf
torture: Allow inter-stutter interval to be specified

Currently, the inter-stutter interval is the same as the stutter duration,
that is, whatever number of jiffies is passed into torture_stutter_init().
This has worked well for quite some time, but the addition of
forward-progress testing to rcutorture can delay processes for several
seconds, which can triple the time that they are stuttered.

This commit therefore adds a second argument to torture_stutter_init()
that specifies the inter-stutter interval.  While locktorture preserves
the current behavior, rcutorture uses the RCU CPU stall warning interval
to provide a wider inter-stutter interval.

Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
include/linux/torture.h
kernel/locking/locktorture.c
kernel/rcu/rcutorture.c
kernel/torture.c