Re: [PATCH 1/2] cgroup: no need to check css refs for release notification

2013-03-04 Thread Tejun Heo
On Fri, Mar 01, 2013 at 03:06:07PM +0800, Li Zefan wrote: > We no longer fail rmdir() when there're still css refs, so we don't > need to check css refs in check_for_release(). > > This also voids a bug. cgroup_has_css_refs() accesses subsys[i] > without cgroup_mutex, so it can race with cgroup_un

[PATCH 1/2] cgroup: no need to check css refs for release notification

2013-02-28 Thread Li Zefan
We no longer fail rmdir() when there're still css refs, so we don't need to check css refs in check_for_release(). This also voids a bug. cgroup_has_css_refs() accesses subsys[i] without cgroup_mutex, so it can race with cgroup_unload_subsys(). cgroup_has_css_refs() ... if (ss == NULL || ss->ro