Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161889Ab3DEIJY (ORCPT ); Fri, 5 Apr 2013 04:09:24 -0400 Received: from mx2.parallels.com ([199.115.105.18]:55291 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750813Ab3DEIJU (ORCPT ); Fri, 5 Apr 2013 04:09:20 -0400 Message-ID: <515E86DA.1090907@parallels.com> Date: Fri, 5 Apr 2013 12:10:02 +0400 From: Glauber Costa User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Tejun Heo CC: Michal Hocko , Li Zefan , , LKML , Cgroups , KAMEZAWA Hiroyuki , Johannes Weiner Subject: Re: [RFC][PATCH 5/7] cgroup: make sure parent won't be destroyed before its children References: <515BF233.6070308@huawei.com> <515BF2A4.1070703@huawei.com> <20130404113750.GH29911@dhcp22.suse.cz> <20130404133706.GA9425@htj.dyndns.org> <20130404152028.GK29911@dhcp22.suse.cz> <20130404152213.GL9425@htj.dyndns.org> In-Reply-To: <20130404152213.GL9425@htj.dyndns.org> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 916 Lines: 23 On 04/04/2013 07:22 PM, Tejun Heo wrote: > On Thu, Apr 04, 2013 at 05:20:28PM +0200, Michal Hocko wrote: >>> But what harm does an additional reference do? >> >> No harm at all. I just wanted to be sure that this is not yet another >> "for memcg" hack. So if this is useful for other controllers then I have >> no objections of course. > > I think it makes sense in general, so let's do it in cgroup core. I > suppose it'd be easier for this to be routed together with other memcg > changes? > > Thanks. > You guys seems already settled, but FWIW I agree with Tejun here. It makes sense from a design point of view for a cgroup to pin its parent. cgroup core it is. -- 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/