diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2006-03-28 16:11:11 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-28 18:36:41 -0800 |
commit | 1f09f9749cdde4e69f95d62d96d2e03f50b3353c (patch) | |
tree | 414589e7d650df08685d00369b97cc6541a0a1ea /kernel/exit.c | |
parent | 8292d633add73d40eda1d26089e2fc758944ac7c (diff) | |
download | talos-obmc-linux-1f09f9749cdde4e69f95d62d96d2e03f50b3353c.tar.gz talos-obmc-linux-1f09f9749cdde4e69f95d62d96d2e03f50b3353c.zip |
[PATCH] release_task: replace open-coded ptrace_unlink()
Use ptrace_unlink() instead of open-coding. No changes in kernel/exit.o
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 98eec590ecbd..77c35efad88c 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -68,13 +68,12 @@ void release_task(struct task_struct * p) task_t *leader; struct dentry *proc_dentry; -repeat: +repeat: atomic_dec(&p->user->processes); spin_lock(&p->proc_lock); proc_dentry = proc_pid_unhash(p); write_lock_irq(&tasklist_lock); - if (unlikely(p->ptrace)) - __ptrace_unlink(p); + ptrace_unlink(p); BUG_ON(!list_empty(&p->ptrace_list) || !list_empty(&p->ptrace_children)); __exit_signal(p); /* |