Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754596AbZFWEPb (ORCPT ); Tue, 23 Jun 2009 00:15:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750739AbZFWEPX (ORCPT ); Tue, 23 Jun 2009 00:15:23 -0400 Received: from TYO202.gate.nec.co.jp ([202.32.8.206]:35814 "EHLO tyo202.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbZFWEPW (ORCPT ); Tue, 23 Jun 2009 00:15:22 -0400 Date: Tue, 23 Jun 2009 13:13:33 +0900 From: Daisuke Nishimura To: KAMEZAWA Hiroyuki Cc: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "balbir@linux.vnet.ibm.com" , "menage@google.com" , Daisuke Nishimura Subject: Re: [RFC][PATCH] cgroup: fix permanent wait in rmdir Message-Id: <20090623131333.be387c84.nishimura@mxp.nes.nec.co.jp> In-Reply-To: <20090623092223.a44e7b20.kamezawa.hiroyu@jp.fujitsu.com> References: <20090622183707.dd9e665b.kamezawa.hiroyu@jp.fujitsu.com> <20090623092223.a44e7b20.kamezawa.hiroyu@jp.fujitsu.com> Organization: NEC Soft, Ltd. X-Mailer: Sylpheed 2.6.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: 1281 Lines: 41 On Tue, 23 Jun 2009 09:22:23 +0900, KAMEZAWA Hiroyuki wrote: > On Mon, 22 Jun 2009 18:37:07 +0900 > KAMEZAWA Hiroyuki wrote: > > > previous discussion was this => http://marc.info/?t=124478543600001&r=1&w=2 > > > > I think this is a minimum fix (in code size and behavior) and because > > we can take a BIG LOCK, this kind of check is necessary, anyway. > > Any comments are welcome. > > I'll split this into 2 patches...and I found I should check page-migration, too. I'll wait a new version, but can you explain in advance this page-migration case ? > > +static int mem_cgroup_retry_rmdir(struct cgroup_subsys *ss, > > + struct cgroup *cont) > > +{ > > + struct mem_cgroup *mem = mem_cgroup_from_cont(cont); > > + > > + if (res_counter_read_u64(&memcg->res, RES_USAGE)) It should be &mem->res. > > + return 1; > > + return 0; > > +} > > + > > + Thanks, Daisuke Nishimura. > Then, modifing swap account logic is not help, at last. > > Thanks, > -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/