We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e39fa commit bddc92fCopy full SHA for bddc92f
kernel/rcu/rcutorture.c
@@ -2487,8 +2487,8 @@ static int rcu_torture_stall(void *args)
2487
preempt_disable();
2488
pr_alert("%s start on CPU %d.\n",
2489
__func__, raw_smp_processor_id());
2490
- while (ULONG_CMP_LT((unsigned long)ktime_get_seconds(),
2491
- stop_at))
+ while (ULONG_CMP_LT((unsigned long)ktime_get_seconds(), stop_at) &&
+ !kthread_should_stop())
2492
if (stall_cpu_block) {
2493
#ifdef CONFIG_PREEMPTION
2494
preempt_schedule();
0 commit comments