[PATCH 07/14] cgroup: make cgroup_destroy_locked() test cgroup_is_populated()

2015-10-09 Thread Tejun Heo
cgroup_destroy_locked() currently tests whether any css_sets are associated to reject removal if the cgroup contains tasks. This works because a css_set's refcnt converges with the number of tasks linked to it and thus there's no css_set linked to a cgroup if it doesn't have any live tasks. To

[PATCH 07/14] cgroup: make cgroup_destroy_locked() test cgroup_is_populated()

2015-10-09 Thread Tejun Heo
cgroup_destroy_locked() currently tests whether any css_sets are associated to reject removal if the cgroup contains tasks. This works because a css_set's refcnt converges with the number of tasks linked to it and thus there's no css_set linked to a cgroup if it doesn't have any live tasks. To