[PATCH v2 4/6] cgroup: remove duplicate RCU free on struct cgroup

2013-01-23 Thread Li Zefan
When destroying a cgroup, though in cgroup_diput() we've called synchronize_rcu(), we then still have to free it via call_rcu(). The story is, long ago to fix a race between reading /proc/sched_debug and freeing cgroup, the code was changed to utilize call_rcu(). See commit

[PATCH v2 4/6] cgroup: remove duplicate RCU free on struct cgroup

2013-01-23 Thread Li Zefan
When destroying a cgroup, though in cgroup_diput() we've called synchronize_rcu(), we then still have to free it via call_rcu(). The story is, long ago to fix a race between reading /proc/sched_debug and freeing cgroup, the code was changed to utilize call_rcu(). See commit