Re: [PATCHSET cgroup/for-3.16] cgroup: iterate cgroup_subsys_states directly

2014-05-16 Thread Tejun Heo
On Fri, May 09, 2014 at 05:31:17PM -0400, Tejun Heo wrote: > Hello, > > Currently, while csses (cgroup_subsys_states) have ->parent linkage > too, only cgroups form full tree through their ->children and > ->sibling fields and css iterations naturally is implemented by > iterating cgroups and then

Re: [PATCHSET cgroup/for-3.16] cgroup: iterate cgroup_subsys_states directly

2014-05-15 Thread Li Zefan
On 2014/5/10 5:31, Tejun Heo wrote: > Hello, > > Currently, while csses (cgroup_subsys_states) have ->parent linkage > too, only cgroups form full tree through their ->children and > ->sibling fields and css iterations naturally is implemented by > iterating cgroups and then dereferencing the css

Re: [PATCHSET cgroup/for-3.16] cgroup: iterate cgroup_subsys_states directly

2014-05-15 Thread Li Zefan
On2014/5/14 21:07, Tejun Heo wrote: > Hello, Li. > > On Wed, May 14, 2014 at 12:21:25PM +0800, Li Zefan wrote: >>> There are now use cases where controllers need to iterate through >>> csses regardless of their online state as long as they have positive >> >> What use cases are we talking about he

Re: [PATCHSET cgroup/for-3.16] cgroup: iterate cgroup_subsys_states directly

2014-05-14 Thread Tejun Heo
Hello, Li. On Wed, May 14, 2014 at 12:21:25PM +0800, Li Zefan wrote: > > There are now use cases where controllers need to iterate through > > csses regardless of their online state as long as they have positive > > What use cases are we talking about here? memcg wants to be able to iterate all

Re: [PATCHSET cgroup/for-3.16] cgroup: iterate cgroup_subsys_states directly

2014-05-13 Thread Li Zefan
Hi Tejun, On 2014/5/10 5:31, Tejun Heo wrote: > Hello, > > Currently, while csses (cgroup_subsys_states) have ->parent linkage > too, only cgroups form full tree through their ->children and > ->sibling fields and css iterations naturally is implemented by > iterating cgroups and then dereferenci

Re: [PATCHSET cgroup/for-3.16] cgroup: iterate cgroup_subsys_states directly

2014-05-13 Thread Tejun Heo
On Fri, May 09, 2014 at 05:31:17PM -0400, Tejun Heo wrote: > and available in the following git branch. > > git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git > review-direct-css-iteration Refreshed on top of cgroup/for-3.16 with the updated patches. Thanks. -- tejun -- To unsubscri

[PATCHSET cgroup/for-3.16] cgroup: iterate cgroup_subsys_states directly

2014-05-09 Thread Tejun Heo
Hello, Currently, while csses (cgroup_subsys_states) have ->parent linkage too, only cgroups form full tree through their ->children and ->sibling fields and css iterations naturally is implemented by iterating cgroups and then dereferencing the css for the specified subsystem. There are now use