From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932131Ab1LNPoG (ORCPT ); Wed, 14 Dec 2011 10:44:06 -0500 Received: from cantor2.suse.de ([195.135.220.15]:40415 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757381Ab1LNPli (ORCPT ); Wed, 14 Dec 2011 10:41:38 -0500 From: Mel Gorman To: Andrew Morton Cc: Andrea Arcangeli , Minchan Kim , Dave Jones , Jan Kara , Andy Isaacson , Johannes Weiner , Mel Gorman , Rik van Riel , Nai Xia , Linux-MM , LKML Subject: [PATCH 02/11] mm: compaction: Use synchronous compaction for /proc/sys/vm/compact_memory Date: Wed, 14 Dec 2011 15:41:24 +0000 Message-Id: <1323877293-15401-3-git-send-email-mgorman@suse.de> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1323877293-15401-1-git-send-email-mgorman@suse.de> References: <1323877293-15401-1-git-send-email-mgorman@suse.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Andrea Arcangeli Reviewed-by: Rik van Riel Reviewed-by: Minchan Kim --- 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]; -- 1.7.3.4