Commit 6ac781b1 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Linus Torvalds

[PATCH] reparent_thread: use remove_parent/add_parent

Use remove_parent/add_parent instead of open coding.

No changes in kernel/exit.o
Signed-off-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c7c64641
...@@ -555,9 +555,9 @@ static void reparent_thread(task_t *p, task_t *father, int traced) ...@@ -555,9 +555,9 @@ static void reparent_thread(task_t *p, task_t *father, int traced)
* anyway, so let go of it. * anyway, so let go of it.
*/ */
p->ptrace = 0; p->ptrace = 0;
list_del_init(&p->sibling); remove_parent(p);
p->parent = p->real_parent; p->parent = p->real_parent;
list_add_tail(&p->sibling, &p->parent->children); add_parent(p);
/* If we'd notified the old parent about this child's death, /* If we'd notified the old parent about this child's death,
* also notify the new parent. * also notify the new parent.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment