Lines Matching refs:current
274 * @child_cs: loop cursor pointing to the current child
286 * @des_cs: loop cursor pointing to the current descendant
580 * If we replaced the flag and mask values of the current cpuset
1193 * The new cpumask, if present, or the current cpus_allowed must
1652 /* on a wq worker, no need to worry about %current's mems_allowed */
1895 ret = task_cs(current) == cpuset_being_rebound;
2177 /* Process any previous ticks, then return current value. */
2954 * Make sure the new task conform to the current state of its parent,
2965 task->mems_allowed = current->mems_allowed;
3175 * the current partition and let the child partitions
3452 nodes_setall(current->mems_allowed);
3483 * Are any of the nodes in the nodemask allowed in current->mems_allowed?
3487 return nodes_intersects(*nodemask, current->mems_allowed);
3510 * current's mems_allowed, yes. If it's not a __GFP_HARDWALL request and this
3511 * node is set in the nearest hardwalled cpuset ancestor to current's cpuset,
3512 * yes. If current has access to memory reserves as an oom victim, yes.
3516 * and do not allow allocations outside the current tasks cpuset
3524 * current tasks mems_allowed came up empty on the first pass over
3538 * in_interrupt - any node ok (current task context irrelevant)
3542 * GFP_USER - only nodes in current tasks mems allowed ok.
3546 struct cpuset *cs; /* current cpuset ancestors */
3553 if (node_isset(node, current->mems_allowed)) {
3560 if (unlikely(tsk_is_oom_victim(current))) {
3567 if (current->flags & PF_EXITING) { /* Let dying task have memory */
3575 cs = nearest_hardwall_ancestor(task_cs(current));
3612 return *rotor = next_node_in(*rotor, current->mems_allowed);
3617 if (current->cpuset_mem_spread_rotor == NUMA_NO_NODE) {
3618 current->cpuset_mem_spread_rotor = node_random(¤t->mems_allowed);
3621 return cpuset_spread_node(¤t->cpuset_mem_spread_rotor);
3626 if (current->cpuset_slab_spread_rotor == NUMA_NO_NODE) {
3627 current->cpuset_slab_spread_rotor = node_random(¤t->mems_allowed);
3630 return cpuset_spread_node(¤t->cpuset_slab_spread_rotor);
3652 * cpuset_print_current_mems_allowed - prints current's cpuset and mems_allowed
3654 * Description: Prints current's name, cpuset name, and cached copy of its
3663 cgrp = task_cs(current)->css.cgroup;
3666 pr_cont(",mems_allowed=%*pbl", nodemask_pr_args(¤t->mems_allowed));
3700 fmeter_markevent(&task_cs(current)->fmeter);
3727 retval = cgroup_path_ns(css->cgroup, buf, PATH_MAX, current->nsproxy->cgroup_ns);