summaryrefslogtreecommitdiffstats
path: root/include/linux/cgroup.h
diff options
context:
space:
mode:
authorLi Zefan2013-03-01 08:06:07 +0100
committerTejun Heo2013-03-04 19:04:54 +0100
commitf50daa704f36a6544a902c52b6cf37b0493dfc5d (patch)
tree157d40fe53c6cde3aa2c2644b35dbe687e547dcc /include/linux/cgroup.h
parentcpuset: use cgroup_name() in cpuset_print_task_mems_allowed() (diff)
downloadkernel-qcow2-linux-f50daa704f36a6544a902c52b6cf37b0493dfc5d.tar.gz
kernel-qcow2-linux-f50daa704f36a6544a902c52b6cf37b0493dfc5d.tar.xz
kernel-qcow2-linux-f50daa704f36a6544a902c52b6cf37b0493dfc5d.zip
cgroup: no need to check css refs for release notification
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->root != cgrp->root) if ss pointers to net_cls_subsys, and cls_cgroup module is unloaded right after the former check but before the latter, the memory that net_cls_subsys resides has become invalid. Signed-off-by: Li Zefan <lizefan@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/cgroup.h')
0 files changed, 0 insertions, 0 deletions