Re: [PATCH 4/4] cgroup: convert from per-cgroup id to per-subsys id

2014-04-22 Thread Tejun Heo
On Tue, Apr 22, 2014 at 04:03:31PM +0800, Jianyu Zhan wrote: > Hi, all. > > Sorry, previous patch has a minor fault, and cause a unitialized variable > warning. > I've fixed it up in this. > > Renewed patch: > --- > > Currently, cgrp->id is only used to look up css's. As cgroup and > css's lif

Re: [PATCH 4/4] cgroup: convert from per-cgroup id to per-subsys id

2014-04-22 Thread Jianyu Zhan
Hi, all. Sorry, previous patch has a minor fault, and cause a unitialized variable warning. I've fixed it up in this. Renewed patch: --- Currently, cgrp->id is only used to look up css's. As cgroup and css's lifetimes is now decoupled, it should be made per-subsystem and moved to css->css_id s

[PATCH 4/4] cgroup: convert from per-cgroup id to per-subsys id

2014-04-21 Thread Jianyu Zhan
Currently, cgrp->id is only used to look up css's. As cgroup and css's lifetimes is now decoupled, it should be made per-subsystem and moved to css->css_id so that lookups are successful until the target css is released. Signed-off-by: Jianyu Zhan --- include/linux/cgroup.h | 26 +++