|
@@ -1269,7 +1269,7 @@ static int attach_task_by_pid(struct cgroup *cgrp, char *pidbuf)
|
|
|
|
|
|
if (pid) {
|
|
if (pid) {
|
|
rcu_read_lock();
|
|
rcu_read_lock();
|
|
- tsk = find_task_by_pid(pid);
|
|
|
|
|
|
+ tsk = find_task_by_vpid(pid);
|
|
if (!tsk || tsk->flags & PF_EXITING) {
|
|
if (!tsk || tsk->flags & PF_EXITING) {
|
|
rcu_read_unlock();
|
|
rcu_read_unlock();
|
|
return -ESRCH;
|
|
return -ESRCH;
|
|
@@ -1955,7 +1955,7 @@ static int pid_array_load(pid_t *pidarray, int npids, struct cgroup *cgrp)
|
|
while ((tsk = cgroup_iter_next(cgrp, &it))) {
|
|
while ((tsk = cgroup_iter_next(cgrp, &it))) {
|
|
if (unlikely(n == npids))
|
|
if (unlikely(n == npids))
|
|
break;
|
|
break;
|
|
- pidarray[n++] = task_pid_nr(tsk);
|
|
|
|
|
|
+ pidarray[n++] = task_pid_vnr(tsk);
|
|
}
|
|
}
|
|
cgroup_iter_end(cgrp, &it);
|
|
cgroup_iter_end(cgrp, &it);
|
|
return n;
|
|
return n;
|