Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753382AbYLIBdh (ORCPT ); Mon, 8 Dec 2008 20:33:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751633AbYLIBd2 (ORCPT ); Mon, 8 Dec 2008 20:33:28 -0500 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:49360 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751559AbYLIBd1 (ORCPT ); Mon, 8 Dec 2008 20:33:27 -0500 Date: Tue, 9 Dec 2008 10:32:31 +0900 From: KAMEZAWA Hiroyuki To: Li Zefan Cc: Tim Blechmann , rostedt@goodmis.org, linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, Balbir Singh Subject: Re: [PATCH] [RT] avoid preemption in memory controller code Message-Id: <20081209103231.ba6b3a39.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <493DC628.5060900@cn.fujitsu.com> References: <1228746854-23875-1-git-send-email-tim@klingt.org> <493DC628.5060900@cn.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: 1605 Lines: 51 On Tue, 09 Dec 2008 09:13:12 +0800 Li Zefan wrote: > CC: Balbir Singh > CC: KAMEZAWA Hiroyuki > > Tim Blechmann wrote: > > the lru_lock of struct mem_group_per_zone is used to avoid preemption > > during the __mem_cgroup_stat_add_safe function. > > therefore, a raw_spinlock_t should be used. > > > > FYI, this lru_lock no longer exists in -mm tree. The following patch > removes that lock: > > http://marc.info/?l=linux-mm&m=122665814801979&w=2 > > > Signed-off-by: Tim Blechmann > > --- > > mm/memcontrol.c | 4 ++-- > > 1 files changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > > index 517f945..8661732 100644 > > --- a/mm/memcontrol.c > > +++ b/mm/memcontrol.c > > @@ -95,9 +95,9 @@ enum mem_cgroup_zstat_index { > > > > struct mem_cgroup_per_zone { > > /* > > - * spin_lock to protect the per cgroup LRU > > + * raw_spin_lock to protect the per cgroup LRU > > */ > > - spinlock_t lru_lock; > > + raw_spinlock_t lru_lock; > > struct list_head active_list; > > struct list_head inactive_list; > > unsigned long count[NR_MEM_CGROUP_ZSTAT]; yes..I remvoed that. Please see mmotm and subscribe linux-mm, if you have interests memory resource controller. Anyway, 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/