Re: [PATCH 1/9] cgroup: add cgroup_subsys->post_create()

2012-11-07 Thread Tejun Heo
Hello, Michal. On Wed, Nov 07, 2012 at 04:25:16PM +0100, Michal Hocko wrote: > > This patch adds ->post_create(). It's called after all ->create() > > succeeded and the cgroup is linked into the generic cgroup hierarchy. > > This plays the counterpart of ->pre_destroy(). > > Hmm, I had to look a

Re: [PATCH 1/9] cgroup: add cgroup_subsys->post_create()

2012-11-07 Thread Michal Hocko
On Sat 03-11-12 01:38:27, Tejun Heo wrote: > Currently, there's no way for a controller to find out whether a new > cgroup finished all ->create() allocatinos successfully and is > considered "live" by cgroup. > > This becomes a problem later when we add generic descendants walking > to cgroup whi

Re: [PATCH 1/9] cgroup: add cgroup_subsys->post_create()

2012-11-05 Thread Glauber Costa
On 11/03/2012 09:38 AM, Tejun Heo wrote: > Currently, there's no way for a controller to find out whether a new > cgroup finished all ->create() allocatinos successfully and is > considered "live" by cgroup. > > This becomes a problem later when we add generic descendants walking > to cgroup which

[PATCH 1/9] cgroup: add cgroup_subsys->post_create()

2012-11-03 Thread Tejun Heo
Currently, there's no way for a controller to find out whether a new cgroup finished all ->create() allocatinos successfully and is considered "live" by cgroup. This becomes a problem later when we add generic descendants walking to cgroup which can be used by controllers as controllers don't have