summaryrefslogtreecommitdiffstats
path: root/kernel/sys.c
diff options
context:
space:
mode:
authorOleg Nesterov2013-07-04 00:08:25 +0200
committerLinus Torvalds2013-07-04 01:08:02 +0200
commit3f4185483832ccf3d2977923db576fa689c2abce (patch)
treeb977552009147be3c15097405f58f0519d29184a /kernel/sys.c
parentcoredump: '% at the end' shouldn't bypass core_uses_pid logic (diff)
downloadkernel-qcow2-linux-3f4185483832ccf3d2977923db576fa689c2abce.tar.gz
kernel-qcow2-linux-3f4185483832ccf3d2977923db576fa689c2abce.tar.xz
kernel-qcow2-linux-3f4185483832ccf3d2977923db576fa689c2abce.zip
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 <oleg@redhat.com> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Michal Hocko <mhocko@suse.cz> Cc: Pavel Emelyanov <xemul@parallels.com> Cc: Sergey Dyasly <dserrg@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/sys.c')
0 files changed, 0 insertions, 0 deletions