summaryrefslogtreecommitdiffstats
path: root/kernel/scftorture.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-09-03 06:08:41 +0200
committerPaul E. McKenney <paulmck@kernel.org>2020-11-07 02:13:49 +0100
commitfda5ba9ed254727ac5761b81455d8e93c78eba4a (patch)
treef8aabe3c3114b0ed1a35a528edb8925e87671d55 /kernel/scftorture.c
parenttorture: Periodically pause in stutter_wait() (diff)
downloadlinux-fda5ba9ed254727ac5761b81455d8e93c78eba4a.tar.xz
linux-fda5ba9ed254727ac5761b81455d8e93c78eba4a.zip
torture: Make torture_stutter() use hrtimer
The torture_stutter() function uses schedule_timeout_interruptible() to time the stutter duration, but this can miss race conditions due to its being time-synchronized with everything else that is based on the timer wheels. This commit therefore converts torture_stutter() to use the high-resolution timers via schedule_hrtimeout(), and also to fuzz the stutter interval. While in the area, this commit also limits the spin-loop portion of the stutter_wait() function's wait loop to two jiffies, down from about one second. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'kernel/scftorture.c')
0 files changed, 0 insertions, 0 deletions