Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with SMTP id 682956B01B2 for ; Fri, 25 Jun 2010 04:31:15 -0400 (EDT) Received: from m5.gw.fujitsu.co.jp ([10.0.50.75]) by fgwmail5.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id o5P8VCSw008062 for (envelope-from kosaki.motohiro@jp.fujitsu.com); Fri, 25 Jun 2010 17:31:12 +0900 Received: from smail (m5 [127.0.0.1]) by outgoing.m5.gw.fujitsu.co.jp (Postfix) with ESMTP id EDB4545DE52 for ; Fri, 25 Jun 2010 17:31:11 +0900 (JST) Received: from s5.gw.fujitsu.co.jp (s5.gw.fujitsu.co.jp [10.0.50.95]) by m5.gw.fujitsu.co.jp (Postfix) with ESMTP id CCF5545DE4E for ; Fri, 25 Jun 2010 17:31:11 +0900 (JST) Received: from s5.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s5.gw.fujitsu.co.jp (Postfix) with ESMTP id B34AB1DB805A for ; Fri, 25 Jun 2010 17:31:11 +0900 (JST) Received: from m105.s.css.fujitsu.com (m105.s.css.fujitsu.com [10.249.87.105]) by s5.gw.fujitsu.co.jp (Postfix) with ESMTP id 5649D1DB8060 for ; Fri, 25 Jun 2010 17:31:11 +0900 (JST) From: KOSAKI Motohiro Subject: [PATCH] vmscan: zone_reclaim don't call disable_swap_token() Message-Id: <20100625173002.8052.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Fri, 25 Jun 2010 17:31:10 +0900 (JST) Sender: owner-linux-mm@kvack.org To: Rik van Riel , Christoph Lameter , LKML , linux-mm , Andrew Morton Cc: kosaki.motohiro@jp.fujitsu.com List-ID: Swap token don't works when zone reclaim is enabled since it was born. Because __zone_reclaim() always call disable_swap_token() unconditionally. This kill swap token feature completely. As far as I know, nobody want to that. Remove it. Cc: Rik van Riel Cc: Christoph Lameter Signed-off-by: KOSAKI Motohiro --- mm/vmscan.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 9c7e57c..0c961f1 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2590,7 +2590,6 @@ static int __zone_reclaim(struct zone *zone, gfp_t gfp_mask, unsigned int order) }; unsigned long slab_reclaimable; - disable_swap_token(); cond_resched(); /* * We need to be able to allocate from the reserves for RECLAIM_SWAP -- 1.6.5.2 -- 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