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 9bc282f commit dbd4175Copy full SHA for dbd4175
kernel/rcu/rcutorture.c
@@ -2419,8 +2419,8 @@ static int rcu_torture_stall(void *args)
2419
preempt_disable();
2420
pr_alert("%s start on CPU %d.\n",
2421
__func__, raw_smp_processor_id());
2422
- while (ULONG_CMP_LT((unsigned long)ktime_get_seconds(),
2423
- stop_at))
+ while (ULONG_CMP_LT((unsigned long)ktime_get_seconds(), stop_at) &&
+ !kthread_should_stop())
2424
if (stall_cpu_block) {
2425
#ifdef CONFIG_PREEMPTION
2426
preempt_schedule();
0 commit comments