Thanks to visit codestin.com Credit goes to github.com
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 2e5ed11 commit 93b7d58Copy full SHA for 93b7d58
kernel/rcu/rcutorture.c
@@ -2464,8 +2464,8 @@ static int rcu_torture_stall(void *args)
2464
preempt_disable();
2465
pr_alert("%s start on CPU %d.\n",
2466
__func__, raw_smp_processor_id());
2467
- while (ULONG_CMP_LT((unsigned long)ktime_get_seconds(),
2468
- stop_at))
+ while (ULONG_CMP_LT((unsigned long)ktime_get_seconds(), stop_at) &&
+ !kthread_should_stop())
2469
if (stall_cpu_block) {
2470
#ifdef CONFIG_PREEMPTION
2471
preempt_schedule();
0 commit comments