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 48b0a85 commit b56e190Copy full SHA for b56e190
kernel/rcu/rcutorture.c
@@ -2061,8 +2061,8 @@ static int rcu_torture_stall(void *args)
2061
preempt_disable();
2062
pr_alert("%s start on CPU %d.\n",
2063
__func__, raw_smp_processor_id());
2064
- while (ULONG_CMP_LT((unsigned long)ktime_get_seconds(),
2065
- stop_at))
+ while (ULONG_CMP_LT((unsigned long)ktime_get_seconds(), stop_at) &&
+ !kthread_should_stop())
2066
if (stall_cpu_block) {
2067
#ifdef CONFIG_PREEMPTION
2068
preempt_schedule();
0 commit comments