diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2017-09-26 14:06:43 -0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2018-07-21 11:43:12 -0400 |
commit | 2c4704756cab7cfa031ada4dab361562f0e357c0 (patch) | |
tree | 8757eb8762d60e34eeab747493759abf3f902c09 /fs/autofs | |
parent | 71dbc8a96953aa91c50181a526acb7f80af74f67 (diff) |
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>
Diffstat (limited to 'fs/autofs')
-rw-r--r-- | fs/autofs/autofs_i.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/autofs/autofs_i.h b/fs/autofs/autofs_i.h index 9400a9f6318a..502812289850 100644 --- a/fs/autofs/autofs_i.h +++ b/fs/autofs/autofs_i.h | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/string.h> | 18 | #include <linux/string.h> |
19 | #include <linux/wait.h> | 19 | #include <linux/wait.h> |
20 | #include <linux/sched.h> | 20 | #include <linux/sched.h> |
21 | #include <linux/sched/signal.h> | ||
21 | #include <linux/mount.h> | 22 | #include <linux/mount.h> |
22 | #include <linux/namei.h> | 23 | #include <linux/namei.h> |
23 | #include <linux/uaccess.h> | 24 | #include <linux/uaccess.h> |