From: Gowrishankar M Date: Thu, 8 Jan 2009 02:07:43 +0000 (-0800) Subject: cgroups: skip processes from other namespaces when listing a cgroup X-Git-Tag: v2.6.29-rc1~144 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7b80bb695a5b64c92e314838e083b2f3bdf29b2;p=pandora-kernel.git cgroups: skip processes from other namespaces when listing a cgroup Once tasks are populated from system namespace inside cgroup, container replaces other namespace task with 0 while listing tasks, inside container. Though this is expected behaviour from container end, there is no use of showing unwanted 0s. In this patch, we check if a process is in same namespace before loading into pid array. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Gowrishankar M Acked-by: Paul Menage Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed