Message ID | 20230717182042.1098651-7-paulmck@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 69745b7b52db5451a93820d82f738f64620d3823 |
Headers | show |
Series | Torture-test updates for v6.6 | expand |
diff --git a/kernel/torture.c b/kernel/torture.c index 3ab4930b9fdb..92704f04a141 100644 --- a/kernel/torture.c +++ b/kernel/torture.c @@ -745,7 +745,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)) @@ -753,7 +753,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); }
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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)