From: Tejun Heo Date: Tue, 13 May 2014 16:19:22 +0000 (-0400) Subject: cgroup: move cgroup->kn->priv clearing to cgroup_rmdir() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~81^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfc79d5bec04cdf26cd207d3e73d8bd59fd780a8;p=pandora-kernel.git cgroup: move cgroup->kn->priv clearing to cgroup_rmdir() 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 initialized cgroups are always removed by cgroup_rmdir(), this can be safely moved to the end of cgroup_rmdir(). This will help simplifying cgroup locking and shouldn't introduce any behavior difference. Signed-off-by: Tejun Heo Acked-by: Li Zefan --- Reading git-diff-tree failed