From: Oleg Nesterov Date: Wed, 3 Jul 2013 22:08:25 +0000 (-0700) Subject: fs/exec.c:de_thread(): use change_pid() rather than detach_pid/attach_pid X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~17^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f4185483832ccf3d2977923db576fa689c2abce;p=pandora-kernel.git fs/exec.c:de_thread(): use change_pid() rather than detach_pid/attach_pid de_thread() can use change_pid() instead of detach + attach. This looks better and this ensures that, say, next_thread() can never see a task with ->pid == NULL. Signed-off-by: Oleg Nesterov Acked-by: "Eric W. Biederman" Cc: Michal Hocko Cc: Pavel Emelyanov Cc: Sergey Dyasly Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed