Lines Matching defs:task
175 /* Stuffs for move charges at task migration. */
193 struct task_struct *moving_task; /* a task moving charges */
1279 * @fn: function to call for each task
1283 * descendants and calls @fn for each task. If @fn returns a non-zero
1299 struct task_struct *task;
1302 while (!ret && (task = css_task_iter_next(&it)))
1303 ret = fn(task, arg);
1971 * the task to sleep at the end of the page fault when all locks are
2016 * sleep on a waitqueue until the userspace task resolves the
2019 * in the task and mem_cgroup_oom_synchronize() has to be called at
2066 * @victim: task to be killed by the OOM killer
2093 * If the victim task has been asynchronously moved to a different
2101 * Traverse the memory cgroup hierarchy from the victim task's
2175 * holding the slowpath move_lock. Track the task who has the
2574 * Factor in the task's own contribution to the overage, such that four
2606 * The allocating task should reclaim at least the batch size, but for
2739 * before killing the task.
2748 * At task move, charge accounts can be doubly counted. So, it's
2824 /* Don't bother a random interrupted task */
2841 * based on how much each task is actually allocating.
3985 * affect task migrations starting after the change.
5707 /* Handlers for move charge at task migration. */
5813 /* folio is moved even if it's not RSS of this task(page-faulted). */
6190 * task migration.
6455 struct task_struct *task;
6459 cgroup_taskset_for_each_leader(task, css, tset)
6462 if (!task)
6465 task_lock(task);
6466 if (task->mm && READ_ONCE(task->mm->owner) == task)
6467 lru_gen_migrate_mm(task->mm);
6468 task_unlock(task);
7352 /* Do not associate the sock with unrelated interrupted task's memcg. */