Lines Matching refs:task
155 static void cgroup_freeze_task(struct task_struct *task, bool freeze) in cgroup_freeze_task() argument
160 if (!lock_task_sighand(task, &flags)) in cgroup_freeze_task()
164 task->jobctl |= JOBCTL_TRAP_FREEZE; in cgroup_freeze_task()
165 signal_wake_up(task, false); in cgroup_freeze_task()
167 task->jobctl &= ~JOBCTL_TRAP_FREEZE; in cgroup_freeze_task()
168 wake_up_process(task); in cgroup_freeze_task()
171 unlock_task_sighand(task, &flags); in cgroup_freeze_task()
180 struct task_struct *task; in cgroup_do_freeze() local
197 while ((task = css_task_iter_next(&it))) { in cgroup_do_freeze()
202 if (task->flags & PF_KTHREAD) in cgroup_do_freeze()
204 cgroup_freeze_task(task, freeze); in cgroup_do_freeze()
222 void cgroup_freezer_migrate_task(struct task_struct *task, in cgroup_freezer_migrate_task() argument
230 if (task->flags & PF_KTHREAD) in cgroup_freezer_migrate_task()
239 !task->frozen) in cgroup_freezer_migrate_task()
247 if (task->frozen) { in cgroup_freezer_migrate_task()
257 cgroup_freeze_task(task, test_bit(CGRP_FREEZE, &dst->flags)); in cgroup_freezer_migrate_task()