cgroups: clean up cgroup_pidlist_find() a bit
authorLi Zefan <[email protected]>
Wed, 10 Mar 2010 23:22:12 +0000 (15:22 -0800)
committerLinus Torvalds <[email protected]>
Fri, 12 Mar 2010 23:52:36 +0000 (15:52 -0800)
commitb70cc5fdb445a6929a01e9c406593265b136c99d
tree7ca8ec384bd93de2ba516f045d9c8c5c77f5b84a
parent67523c48aa74d5637848edeccf285af1c60bf14a
cgroups: clean up cgroup_pidlist_find() a bit

Don't call get_pid_ns() before we locate/alloc the ns.

Signed-off-by: Li Zefan <[email protected]>
Cc: Serge Hallyn <[email protected]>
Acked-by: Paul Menage <[email protected]>
Cc: KAMEZAWA Hiroyuki <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/cgroup.c