Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758358AbZAODJp (ORCPT ); Wed, 14 Jan 2009 22:09:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753286AbZAODJh (ORCPT ); Wed, 14 Jan 2009 22:09:37 -0500 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:39155 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750825AbZAODJh (ORCPT ); Wed, 14 Jan 2009 22:09:37 -0500 Date: Thu, 15 Jan 2009 12:08:29 +0900 From: KAMEZAWA Hiroyuki To: KAMEZAWA Hiroyuki Cc: balbir@linux.vnet.ibm.com, Daisuke Nishimura , LKML , linux-mm , Andrew Morton , Pavel Emelyanov , Li Zefan , Paul Menage Subject: Re: [RFC][PATCH 5/4] memcg: don't call res_counter_uncharge when obsolete Message-Id: <20090115120829.e1d417e8.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <20090115114846.388781a7.kamezawa.hiroyu@jp.fujitsu.com> References: <20090113184533.6ffd2af9.nishimura@mxp.nes.nec.co.jp> <20090114175121.275ecd59.nishimura@mxp.nes.nec.co.jp> <20090114135539.GA21516@balbir.in.ibm.com> <20090115114846.388781a7.kamezawa.hiroyu@jp.fujitsu.com> Organization: FUJITSU Co. LTD. X-Mailer: Sylpheed 2.5.0 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 882 Lines: 24 On Thu, 15 Jan 2009 11:48:46 +0900 KAMEZAWA Hiroyuki wrote: > On Wed, 14 Jan 2009 19:25:39 +0530 > Balbir Singh wrote: > > I liked the earlier, EBUSY approach that ensured that parents could > > not go away if children exist. IMHO, the code has gotten too complex > > and has too many corner cases. Time to revisit it. > > > It's on my plan. > I'll fix this by CSS-ID patch. > > When I recored memcg's CSS-ID to swap_cgroup (not pointer to memcg), > we never need memcg's refcnt. > Sorry, ignore this. refcnt in memcg is necessary anyway to prevent reuse of ID. -Kame -- 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/