Use task_pgrp() task_session() in copy_process()
authorSukadev Bhattiprolu <sukadev@us.ibm.com>
Fri, 11 May 2007 05:23:04 +0000 (22:23 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 11 May 2007 15:29:36 +0000 (08:29 -0700)
commit0800d30832ddecf2d9dc40068fed9df95930a8f1
treefa4aa77d9cd95818b4ba32ced6bbb096c19b1bfb
parent85868995d9d82de5b0de38d695559daddffef893
Use task_pgrp() task_session() in copy_process()

Use task_pgrp() and task_session() in copy_process(), and avoid find_pid()
call when attaching the task to its process group and session.

Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: Serge Hallyn <serue@us.ibm.com>
Cc: <containers@lists.osdl.org>
Acked-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/fork.c