[PATCH] release_task: replace open-coded ptrace_unlink()
From: Oleg Nesterov
Date: Thu Feb 16 2006 - 12:30:21 EST
Use ptrace_unlink() instead of open-coding.
No changes in kernel/exit.o
Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>
--- 2.6.16-rc3/kernel/exit.c~ 2006-02-17 00:03:30.000000000 +0300
+++ 2.6.16-rc3/kernel/exit.c 2006-02-17 00:05:25.000000000 +0300
@@ -66,13 +66,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);
/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/