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 710cf51 commit 431315aCopy full SHA for 431315a
kernel/rcu/rcutorture.c
@@ -2489,8 +2489,8 @@ static int rcu_torture_stall(void *args)
2489
preempt_disable();
2490
pr_alert("%s start on CPU %d.\n",
2491
__func__, raw_smp_processor_id());
2492
- while (ULONG_CMP_LT((unsigned long)ktime_get_seconds(),
2493
- stop_at))
+ while (ULONG_CMP_LT((unsigned long)ktime_get_seconds(), stop_at) &&
+ !kthread_should_stop())
2494
if (stall_cpu_block) {
2495
#ifdef CONFIG_PREEMPTION
2496
preempt_schedule();
0 commit comments