Skip to content

Commit

Permalink
[PATCH] release_task: replace open-coded ptrace_unlink()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Mar 29, 2006
1 parent 8292d63 commit 1f09f97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
/*
Expand Down

0 comments on commit 1f09f97

Please sign in to comment.