Re: [PATCH 6/6] cgroup, memcg: implement css->id and convert css_from_id() to use it

2014-05-03 Thread Li Zefan
(Just came back from a short vacation) On 2014/5/1 23:46, Tejun Heo wrote: > On Mon, Apr 28, 2014 at 11:33:16AM +0800, Li Zefan wrote: >> On 2014/4/25 5:02, Tejun Heo wrote: >>> Until now, cgroup->id has been used to identify all the associated >>> csses and css_from_id() takes cgroup ID and retur

Re: [PATCH 6/6] cgroup, memcg: implement css->id and convert css_from_id() to use it

2014-05-01 Thread Tejun Heo
On Mon, Apr 28, 2014 at 11:33:16AM +0800, Li Zefan wrote: > On 2014/4/25 5:02, Tejun Heo wrote: > > Until now, cgroup->id has been used to identify all the associated > > csses and css_from_id() takes cgroup ID and returns the matching css > > by looking up the cgroup and then dereferencing the css

Re: [PATCH 6/6] cgroup, memcg: implement css->id and convert css_from_id() to use it

2014-04-30 Thread Michal Hocko
On Thu 24-04-14 17:02:13, Tejun Heo wrote: > Until now, cgroup->id has been used to identify all the associated > csses and css_from_id() takes cgroup ID and returns the matching css > by looking up the cgroup and then dereferencing the css associated > with it; however, now that the lifetimes of c

Re: [PATCH 6/6] cgroup, memcg: implement css->id and convert css_from_id() to use it

2014-04-27 Thread Li Zefan
On 2014/4/25 5:02, Tejun Heo wrote: > Until now, cgroup->id has been used to identify all the associated > csses and css_from_id() takes cgroup ID and returns the matching css > by looking up the cgroup and then dereferencing the css associated > with it; however, now that the lifetimes of cgroup a

[PATCH 6/6] cgroup, memcg: implement css->id and convert css_from_id() to use it

2014-04-24 Thread Tejun Heo
Until now, cgroup->id has been used to identify all the associated csses and css_from_id() takes cgroup ID and returns the matching css by looking up the cgroup and then dereferencing the css associated with it; however, now that the lifetimes of cgroup and css are separate, this is incorrect and b