]> 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>
Thu, 18 Jul 2013 23:56:36 +0000 (09:56 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 18 Jul 2013 23:56:36 +0000 (09:56 +1000)
commit854216d2d3669c69ebd8553d6b2dcc15df34eef0
treee121ccfeca1a47049a646e6fd9d5dab6063202cd
parent11dd1fb9e5ffb68fa4df17f37de18ce43513f9b6
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