mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH rc1-mm] reparent_thread: use remove_parent/add_parent
@ 2006-02-04 20:32 Oleg Nesterov
  0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2006-02-04 20:32 UTC (permalink / raw)
  To: linux-kernel; +Cc: Eric W. Biederman, Andrew Morton

(depends on remove-add_parents-parent-argument.patch)

Trivial, use remove_parent/add_parent instead of open coding.

No changes in kernel/exit.o

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>

--- RC-1/kernel/exit.c~	2006-02-04 22:06:27.000000000 +0300
+++ RC-1/kernel/exit.c	2006-02-04 22:17:54.000000000 +0300
@@ -548,9 +548,9 @@ static void reparent_thread(task_t *p, t
 		 * anyway, so let go of it.
 		 */
 		p->ptrace = 0;
-		list_del_init(&p->sibling);
+		remove_parent(p);
 		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,
 		 * also notify the new parent.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-04 19:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-04 20:32 [PATCH rc1-mm] reparent_thread: use remove_parent/add_parent Oleg Nesterov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®