pids: Move the pgrp and session pid pointers from task_struct to signal_struct
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 26 Sep 2017 18:06:43 +0000 (13:06 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Sat, 21 Jul 2018 15:43:12 +0000 (10:43 -0500)
commit2c4704756cab7cfa031ada4dab361562f0e357c0
tree8757eb8762d60e34eeab747493759abf3f902c09
parent71dbc8a96953aa91c50181a526acb7f80af74f67
pids: Move the pgrp and session pid pointers from task_struct to signal_struct

To access these fields the code always has to go to group leader so
going to signal struct is no loss and is actually a fundamental simplification.

This saves a little bit of memory by only allocating the pid pointer array
once instead of once for every thread, and even better this removes a
few potential races caused by the fact that group_leader can be changed
by de_thread, while signal_struct can not.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
arch/ia64/kernel/asm-offsets.c
arch/ia64/kernel/fsys.S
fs/autofs/autofs_i.h
include/linux/init_task.h
include/linux/pid.h
include/linux/sched.h
include/linux/sched/signal.h
init/init_task.c
kernel/fork.c
kernel/pid.c