[PATCH 4/8] cgroup: move cgroup->kn->priv clearing to cgroup_rmdir()

2014-05-06 Thread Tejun Heo
The ->priv field of a cgroup directory kernfs_node points back to the cgroup. This field is RCU cleared in cgroup_destroy_locked() for non-kernfs accesses from css_tryget_from_dir() and cgroupstats_build(). As these are only applicable to cgroups which finished creation successfully and fully

[PATCH 4/8] cgroup: move cgroup-kn-priv clearing to cgroup_rmdir()

2014-05-06 Thread Tejun Heo
The -priv field of a cgroup directory kernfs_node points back to the cgroup. This field is RCU cleared in cgroup_destroy_locked() for non-kernfs accesses from css_tryget_from_dir() and cgroupstats_build(). As these are only applicable to cgroups which finished creation successfully and fully