Messages in this thread | | | Date | Mon, 8 Apr 2013 08:36:35 -0700 | From | Tejun Heo <> | Subject | Re: [PATCH 09/12] cgroup: make sure parent won't be destroyed before its children |
| |
On Mon, Apr 08, 2013 at 02:35:02PM +0800, Li Zefan wrote: > 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 <lizefan@huawei.com> > Reviewed-by: Michal Hocko <mhocko@suse.cz> > Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Tejun Heo <tj@kernel.org>
Thanks.
-- tejun
| |