Skip to content

Commit bbd40fc

Browse files
committed
signal: Remove has_group_leader_pid
After the introduction of exchange_tids has_group_leader_pid is equivalent to thread_group_leader. After the last couple of cleanups has_group_leader_pid has no more callers. So remove the now unused and redundant has_group_leader_pid. Signed-off-by: "Eric W. Biederman" <[email protected]>
1 parent 610b818 commit bbd40fc

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

include/linux/sched/signal.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -654,17 +654,6 @@ static inline bool thread_group_leader(struct task_struct *p)
654654
return p->exit_signal >= 0;
655655
}
656656

657-
/* Do to the insanities of de_thread it is possible for a process
658-
* to have the pid of the thread group leader without actually being
659-
* the thread group leader. For iteration through the pids in proc
660-
* all we care about is that we have a task with the appropriate
661-
* pid, we don't actually care if we have the right task.
662-
*/
663-
static inline bool has_group_leader_pid(struct task_struct *p)
664-
{
665-
return task_pid(p) == task_tgid(p);
666-
}
667-
668657
static inline
669658
bool same_thread_group(struct task_struct *p1, struct task_struct *p2)
670659
{

0 commit comments

Comments
 (0)