[PATCH] don't use REMOVE_LINKS/SET_LINKS for reparenting
commit9b678ece42893b53aae5ed7cb8d7cb261cacb72c
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 29 Mar 2006 00:11:05 +0000 (28 16:11 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 29 Mar 2006 02:36:41 +0000 (28 18:36 -0800)
tree2fc3cdcdc2940127885219b8d4142f8317b46bbd
parent8fafabd86f1b75ed3cc6a6ffbe6c3e53e3d8457d
[PATCH] don't use REMOVE_LINKS/SET_LINKS for reparenting

There are places where kernel uses REMOVE_LINKS/SET_LINKS while changing
process's ->parent.  Use add_parent/remove_parent instead, they don't abuse
of global process list.

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>
kernel/exit.c
kernel/ptrace.c