From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with SMTP id 0D7A36B0070 for ; Sat, 19 Nov 2011 14:54:37 -0500 (EST) From: Andrea Arcangeli Subject: [PATCH 2/8] mm: compaction: Use synchronous compaction for /proc/sys/vm/compact_memory Date: Sat, 19 Nov 2011 20:54:14 +0100 Message-Id: <1321732460-14155-3-git-send-email-aarcange@redhat.com> In-Reply-To: <1321635524-8586-1-git-send-email-mgorman@suse.de> References: <1321635524-8586-1-git-send-email-mgorman@suse.de> Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org Cc: Mel Gorman , Minchan Kim , Jan Kara , Andy Isaacson , Johannes Weiner , linux-kernel@vger.kernel.org From: Mel Gorman When asynchronous compaction was introduced, the /proc/sys/vm/compact_memory handler should have been updated to always use synchronous compaction. This did not happen so this patch addresses it. The assumption is if a user writes to /proc/sys/vm/compact_memory, they are willing for that process to stall. Signed-off-by: Mel Gorman Signed-off-by: Andrea Arcangeli --- mm/compaction.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/mm/compaction.c b/mm/compaction.c index 237560e..615502b 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -666,6 +666,7 @@ static int compact_node(int nid) .nr_freepages = 0, .nr_migratepages = 0, .order = -1, + .sync = true, }; zone = &pgdat->node_zones[zoneid]; -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org