Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965098Ab3DHPgn (ORCPT ); Mon, 8 Apr 2013 11:36:43 -0400 Received: from mail-da0-f50.google.com ([209.85.210.50]:54423 "EHLO mail-da0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964978Ab3DHPgk (ORCPT ); Mon, 8 Apr 2013 11:36:40 -0400 Date: Mon, 8 Apr 2013 08:36:35 -0700 From: Tejun Heo To: Li Zefan Cc: Andrew Morton , Glauber Costa , KAMEZAWA Hiroyuki , Johannes Weiner , LKML , Cgroups , linux-mm@kvack.org Subject: Re: [PATCH 09/12] cgroup: make sure parent won't be destroyed before its children Message-ID: <20130408153635.GB3021@htj.dyndns.org> References: <5162648B.9070802@huawei.com> <51626516.3000603@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51626516.3000603@huawei.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 829 Lines: 23 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 > Reviewed-by: Michal Hocko > Acked-by: KAMEZAWA Hiroyuki Acked-by: Tejun Heo Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/