diff mbox series

[4/9] torture: Make torture_hrtimeout_*() use TASK_IDLE

Message ID 20230717182042.1098651-4-paulmck@kernel.org (mailing list archive)
State Accepted
Commit dae00a6d70c3367adb5067642085129236b01dd7
Headers show
Series Torture-test updates for v6.6 | expand

Commit Message

Paul E. McKenney July 17, 2023, 6:20 p.m. UTC
Given that it is expected that more code will use torture_hrtimeout_*(),
including for longer timeouts, make it use TASK_IDLE instead of
TASK_UNINTERRUPTIBLE.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
---
 kernel/torture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/kernel/torture.c b/kernel/torture.c
index db79197e257a..836fefa44373 100644
--- a/kernel/torture.c
+++ b/kernel/torture.c
@@ -96,7 +96,7 @@  int torture_hrtimeout_ns(ktime_t baset_ns, u32 fuzzt_ns, struct torture_random_s
 
 	if (trsp)
 		hto += (torture_random(trsp) >> 3) % fuzzt_ns;
-	set_current_state(TASK_UNINTERRUPTIBLE);
+	set_current_state(TASK_IDLE);
 	return schedule_hrtimeout(&hto, HRTIMER_MODE_REL);
 }
 EXPORT_SYMBOL_GPL(torture_hrtimeout_ns);