aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-02-08 07:19:20 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-08 12:22:29 -0500
commit6c5f3e7b43300508fe3947ff3cfff0f86043bb57 (patch)
tree9843b8897ec3357b09f62bb6423cd4753e1d4516 /kernel/exit.c
parentfea9d175545b38cb3e84569400419eb81bc90fa3 (diff)
Pidns: make full use of xxx_vnr() calls
Some time ago the xxx_vnr() calls (e.g. pid_vnr or find_task_by_vpid) were _all_ converted to operate on the current pid namespace. After this each call like xxx_nr_ns(foo, current->nsproxy->pid_ns) is nothing but a xxx_vnr(foo) one. Switch all the xxx_nr_ns() callers to use the xxx_vnr() calls where appropriate. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Reviewed-by: Oleg Nesterov <oleg@tv-sign.ru> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Balbir Singh <balbir@in.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 2567de3487bd..81345ba4b253 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -1174,7 +1174,7 @@ static int wait_task_zombie(struct task_struct *p, int noreap,
1174{ 1174{
1175 unsigned long state; 1175 unsigned long state;
1176 int retval, status, traced; 1176 int retval, status, traced;
1177 pid_t pid = task_pid_nr_ns(p, current->nsproxy->pid_ns); 1177 pid_t pid = task_pid_vnr(p);
1178 1178
1179 if (unlikely(noreap)) { 1179 if (unlikely(noreap)) {
1180 uid_t uid = p->uid; 1180 uid_t uid = p->uid;
@@ -1369,7 +1369,7 @@ unlock_sig:
1369 * possibly take page faults for user memory. 1369 * possibly take page faults for user memory.
1370 */ 1370 */
1371 get_task_struct(p); 1371 get_task_struct(p);
1372 pid = task_pid_nr_ns(p, current->nsproxy->pid_ns); 1372 pid = task_pid_vnr(p);
1373 why = (p->ptrace & PT_PTRACED) ? CLD_TRAPPED : CLD_STOPPED; 1373 why = (p->ptrace & PT_PTRACED) ? CLD_TRAPPED : CLD_STOPPED;
1374 read_unlock(&tasklist_lock); 1374 read_unlock(&tasklist_lock);
1375 1375
@@ -1428,7 +1428,7 @@ static int wait_task_continued(struct task_struct *p, int noreap,
1428 p->signal->flags &= ~SIGNAL_STOP_CONTINUED; 1428 p->signal->flags &= ~SIGNAL_STOP_CONTINUED;
1429 spin_unlock_irq(&p->sighand->siglock); 1429 spin_unlock_irq(&p->sighand->siglock);
1430 1430
1431 pid = task_pid_nr_ns(p, current->nsproxy->pid_ns); 1431 pid = task_pid_vnr(p);
1432 uid = p->uid; 1432 uid = p->uid;
1433 get_task_struct(p); 1433 get_task_struct(p);
1434 read_unlock(&tasklist_lock); 1434 read_unlock(&tasklist_lock);