From: Li Zefan Date: Mon, 8 Apr 2013 06:35:02 +0000 (+0800) Subject: cgroup: make sure parent won't be destroyed before its children X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~124^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=415cf07a1c1c65249773330434878ae7bcd92d0f;p=pandora-kernel.git cgroup: make sure parent won't be destroyed before its children Suppose we rmdir a cgroup and there're still css refs, this cgroup won't be freed. Then we rmdir the parent cgroup, and the parent is freed immediately due to css ref draining to 0. Now it would be a disaster if the still-alive child cgroup tries to access its parent. Make sure this won't happen. Signed-off-by: Li Zefan Reviewed-by: Michal Hocko Acked-by: KAMEZAWA Hiroyuki Signed-off-by: Tejun Heo --- Reading git-diff-tree failed