Lines Matching refs:task
103 struct task_struct *task; in cgroup_transfer_tasks() local
135 task = css_task_iter_next(&it); in cgroup_transfer_tasks()
136 } while (task && (task->flags & PF_EXITING)); in cgroup_transfer_tasks()
138 if (task) in cgroup_transfer_tasks()
139 get_task_struct(task); in cgroup_transfer_tasks()
142 if (task) { in cgroup_transfer_tasks()
143 ret = cgroup_migrate(task, false, &mgctx); in cgroup_transfer_tasks()
145 TRACE_CGROUP_PATH(transfer_tasks, to, task, false); in cgroup_transfer_tasks()
146 put_task_struct(task); in cgroup_transfer_tasks()
148 } while (task && !ret); in cgroup_transfer_tasks()
495 struct task_struct *task; in __cgroup1_procs_write() local
503 task = cgroup_procs_write_start(buf, threadgroup); in __cgroup1_procs_write()
504 ret = PTR_ERR_OR_ZERO(task); in __cgroup1_procs_write()
513 tcred = get_task_cred(task); in __cgroup1_procs_write()
523 ret = cgroup_attach_task(cgrp, task, threadgroup); in __cgroup1_procs_write()
526 cgroup_procs_write_finish(task); in __cgroup1_procs_write()