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

Tejun Heo tj at kernel.org
Fri Jul 12 20:02:47 UTC 2013


On Thu, Jul 11, 2013 at 04:34:48PM -0700, 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>

Applied this to cgroup/for-3.11-fixes so that the out-of-tree usages
currently being developed can target 3.11 kernel.  This function
currently doesn't have any in-tree users so this won't affect
anything.

Thanks.

-- 
tejun


More information about the Containers mailing list