Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b16d3d5a authored by Mel Gorman's avatar Mel Gorman Committed by Linus Torvalds
Browse files

mm: compaction: use synchronous compaction for /proc/sys/vm/compact_memory



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: default avatarMel Gorman <mgorman@suse.de>
Reviewed-by: default avatarAndrea Arcangeli <aarcange@redhat.com>
Reviewed-by: default avatarRik van Riel <riel@redhat.com>
Reviewed-by: default avatarMinchan Kim <minchan.kim@gmail.com>
Cc: Dave Jones <davej@redhat.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Andy Isaacson <adi@hexapodia.org>
Cc: Nai Xia <nai.xia@gmail.com>
Cc: Johannes Weiner <jweiner@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a77ebd33
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -668,6 +668,7 @@ static int compact_node(int nid)
			.nr_freepages = 0,
			.nr_freepages = 0,
			.nr_migratepages = 0,
			.nr_migratepages = 0,
			.order = -1,
			.order = -1,
			.sync = true,
		};
		};


		zone = &pgdat->node_zones[zoneid];
		zone = &pgdat->node_zones[zoneid];