Re: [PATCH 3/8] cgroup: implement cgroup_get_from_path() and expose cgroup_put()

2015-12-22 Thread Tejun Heo
Hello, Serge. On Mon, Dec 21, 2015 at 06:22:41PM -0600, Serge E. Hallyn wrote: > I'm trying to figure out how to handle this in the cgroup ns patchset. > Is this going to be purely used internally? From the user i see in > this patchset it looks like I should leave it be (and have @path always >

Re: [PATCH 3/8] cgroup: implement cgroup_get_from_path() and expose cgroup_put()

2015-12-21 Thread Serge E. Hallyn
On Mon, Dec 07, 2015 at 05:38:50PM -0500, Tejun Heo wrote: > Implement cgroup_get_from_path() using kernfs_walk_and_get() which > obtains a default hierarchy cgroup from its path. This will be used > to allow cgroup path based matching from outside cgroup proper - > e.g. networking and perf. Hi T

[PATCH 3/8] cgroup: implement cgroup_get_from_path() and expose cgroup_put()

2015-12-07 Thread Tejun Heo
Implement cgroup_get_from_path() using kernfs_walk_and_get() which obtains a default hierarchy cgroup from its path. This will be used to allow cgroup path based matching from outside cgroup proper - e.g. networking and perf. v2: Add EXPORT_SYMBOL_GPL(cgroup_get_from_path). Signed-off-by: Tejun