|
@@ -148,11 +148,8 @@ autogroup_move_group(struct task_struct *p, struct autogroup *ag)
|
|
if (!ACCESS_ONCE(sysctl_sched_autogroup_enabled))
|
|
if (!ACCESS_ONCE(sysctl_sched_autogroup_enabled))
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
- t = p;
|
|
|
|
- do {
|
|
|
|
|
|
+ for_each_thread(p, t)
|
|
sched_move_task(t);
|
|
sched_move_task(t);
|
|
- } while_each_thread(p, t);
|
|
|
|
-
|
|
|
|
out:
|
|
out:
|
|
unlock_task_sighand(p, &flags);
|
|
unlock_task_sighand(p, &flags);
|
|
autogroup_kref_put(prev);
|
|
autogroup_kref_put(prev);
|