From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with SMTP id 0A50E6B006A for ; Mon, 11 Jan 2010 00:04:36 -0500 (EST) Received: by ywh5 with SMTP id 5so44835386ywh.11 for ; Sun, 10 Jan 2010 21:04:35 -0800 (PST) Date: Mon, 11 Jan 2010 14:02:15 +0900 From: Minchan Kim Subject: Re: [PATCH 2/4] mm/page_alloc : relieve the zone->lock's pressure for allocation Message-Id: <20100111140215.e5f7049a.minchan.kim@barrios-desktop> In-Reply-To: <1263184634-15447-2-git-send-email-shijie8@gmail.com> References: <1263184634-15447-1-git-send-email-shijie8@gmail.com> <1263184634-15447-2-git-send-email-shijie8@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Huang Shijie Cc: akpm@linux-foundation.org, mel@csn.ul.ie, kosaki.motohiro@jp.fujitsu.com, linux-mm@kvack.org List-ID: On Mon, 11 Jan 2010 12:37:12 +0800 Huang Shijie wrote: > The __mod_zone_page_state() only require irq disabling, > it does not require the zone's spinlock. So move it out of > the guard region of the spinlock to relieve the pressure for > allocation. > > Signed-off-by: Huang Shijie > --- > mm/page_alloc.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 23df1ed..00aa83a 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -961,8 +961,8 @@ static int rmqueue_single(struct zone *zone, unsigned long count, > set_page_private(page, migratetype); > list = &page->lru; > } > - __mod_zone_page_state(zone, NR_FREE_PAGES, -i); > spin_unlock(&zone->lock); > + __mod_zone_page_state(zone, NR_FREE_PAGES, -i); > return i; > } > > -- > 1.6.5.2 > How about moving this patch into [4/4]? Otherwise, Looks good to me. Reviewed-by: Minchan Kim -- Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org