torture: Move stutter_wait() timeouts to hrtimers
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 26 Jun 2023 23:52:35 +0000 (16:52 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 14 Aug 2023 22:01:08 +0000 (15:01 -0700)
In order to gain better race coverage, move the test start/stop
waits in stutter_wait() to torture_hrtimeout_jiffies().

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/torture.c

index c5311154bc4d56a479e5e2aea574efc6baddf4cc..984651de4b5532bc5d56f10d906837637edf6e86 100644 (file)
@@ -742,7 +742,7 @@ bool stutter_wait(const char *title)
                        ret = true;
                }
                if (spt == 1) {
-                       schedule_timeout_interruptible(1);
+                       torture_hrtimeout_jiffies(1, NULL);
                } else if (spt == 2) {
                        while (READ_ONCE(stutter_pause_test)) {
                                if (!(i++ & 0xffff))
@@ -750,7 +750,7 @@ bool stutter_wait(const char *title)
                                cond_resched();
                        }
                } else {
-                       schedule_timeout_interruptible(round_jiffies_relative(HZ));
+                       torture_hrtimeout_jiffies(round_jiffies_relative(HZ), NULL);
                }
                torture_shutdown_absorb(title);
        }