(IS_ENABLED(CONFIG_NO_HZ_FULL) &&
!is_idle_task(t) && t->rcu_tasks_idle_cpu >= 0)) {
ACCESS_ONCE(t->rcu_tasks_holdout) = false;
- list_del_rcu(&t->rcu_tasks_holdout_list);
+ list_del_init(&t->rcu_tasks_holdout_list);
put_task_struct(t);
return;
}
bool firstreport;
bool needreport;
int rtst;
+ struct task_struct *t1;
schedule_timeout_interruptible(HZ);
rtst = ACCESS_ONCE(rcu_task_stall_timeout);
lastreport = jiffies;
firstreport = true;
WARN_ON(signal_pending(current));
- rcu_read_lock();
- list_for_each_entry_rcu(t, &rcu_tasks_holdouts,
- rcu_tasks_holdout_list)
+ list_for_each_entry_safe(t, t1, &rcu_tasks_holdouts,
+ rcu_tasks_holdout_list) {
check_holdout_task(t, needreport, &firstreport);
- rcu_read_unlock();
+ cond_resched();
+ }
}
/*