diff options
Diffstat (limited to 'include/linux/sched/signal.h')
-rw-r--r-- | include/linux/sched/signal.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/sched/signal.h b/include/linux/sched/signal.h index 2dcded16eb1e..ee30a5ba475f 100644 --- a/include/linux/sched/signal.h +++ b/include/linux/sched/signal.h | |||
@@ -147,7 +147,6 @@ struct signal_struct { | |||
147 | #endif | 147 | #endif |
148 | 148 | ||
149 | /* PID/PID hash table linkage. */ | 149 | /* PID/PID hash table linkage. */ |
150 | struct pid *leader_pid; | ||
151 | struct pid *pids[PIDTYPE_MAX]; | 150 | struct pid *pids[PIDTYPE_MAX]; |
152 | 151 | ||
153 | #ifdef CONFIG_NO_HZ_FULL | 152 | #ifdef CONFIG_NO_HZ_FULL |
@@ -571,7 +570,7 @@ struct pid *task_pid_type(struct task_struct *task, enum pid_type type) | |||
571 | 570 | ||
572 | static inline struct pid *task_tgid(struct task_struct *task) | 571 | static inline struct pid *task_tgid(struct task_struct *task) |
573 | { | 572 | { |
574 | return task->signal->leader_pid; | 573 | return task->signal->pids[PIDTYPE_TGID]; |
575 | } | 574 | } |
576 | 575 | ||
577 | /* | 576 | /* |
@@ -607,7 +606,7 @@ static inline bool thread_group_leader(struct task_struct *p) | |||
607 | */ | 606 | */ |
608 | static inline bool has_group_leader_pid(struct task_struct *p) | 607 | static inline bool has_group_leader_pid(struct task_struct *p) |
609 | { | 608 | { |
610 | return task_pid(p) == p->signal->leader_pid; | 609 | return task_pid(p) == task_tgid(p); |
611 | } | 610 | } |
612 | 611 | ||
613 | static inline | 612 | static inline |