[PATCH cgroup/for-3.12] cgroup: replace task_cgroup_path_from_hierarchy() with task_cgroup_path()

Li Zefan lizefan at huawei.com
Fri Jul 12 07:49:53 UTC 2013

On 2013/7/12 7:34, Tejun Heo wrote:
> task_cgroup_path_from_hierarchy() was added for the planned new users
> and none of the currently planned users wants to know about multiple
> hierarchies.  This patch drops the multiple hierarchy part and makes
> it always return the path in the first non-dummy hierarchy.
> As unified hierarchy will always have id 1, this is guaranteed to
> return the path for the unified hierarchy if mounted; otherwise, it
> will return the path from the hierarchy which happens to occupy the
> lowest hierarchy id, which will usually be the first hierarchy mounted
> after boot.
> Signed-off-by: Tejun Heo <tj at kernel.org>
> Cc: Lennart Poettering <lennart at poettering.net>
> Cc: Kay Sievers <kay.sievers at vrfy.org>
> Cc: Jan Kaluža <jkaluza at redhat.com>

Acked-by: Li Zefan <lizefan at huawei.com>

More information about the Containers mailing list