]> git.karo-electronics.de Git - karo-tx-linux.git/commit
include/linux/sched.h: don't use task->pid/tgid in same_thread_group/has_group_leader_pid
authorOleg Nesterov <oleg@redhat.com>
Wed, 19 Jun 2013 00:05:40 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:49 +0000 (17:12 +1000)
commit7441ad59ad91bfe2ec99606c26bcff83e7ee03ce
treea50a89a2bf21663c4c076ec7baf991cdd45a9ba4
parent6ea796ba4a53a4b068cce01b42c0234dbbb1e1d7
include/linux/sched.h: don't use task->pid/tgid in same_thread_group/has_group_leader_pid

task_struct->pid/tgid should go away.

1. Change same_thread_group() to use task->signal for comparison.

2. Change has_group_leader_pid(task) to compare task_pid(task) with
   signal->leader_pid.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Sergey Dyasly <dserrg@gmail.com>
Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/sched.h