All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged mm-stable] mm-compaction-finish-scanning-the-current-pageblock-if-requested.patch removed from -mm tree
@ 2023-02-03  6:38 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2023-02-03  6:38 UTC (permalink / raw)
  To: mm-commits, zhouchuyi, vbabka, pedro.falcato, pbonzini, mlevitsk,
	mhocko, jirislaby, mgorman, akpm


The quilt patch titled
     Subject: mm, compaction: finish scanning the current pageblock if requested
has been removed from the -mm tree.  Its filename was
     mm-compaction-finish-scanning-the-current-pageblock-if-requested.patch

This patch was dropped because it was merged into the mm-stable branch
of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Mel Gorman <mgorman@techsingularity.net>
Subject: mm, compaction: finish scanning the current pageblock if requested
Date: Wed, 25 Jan 2023 13:44:33 +0000

cc->finish_pageblock is set when the current pageblock should be rescanned
but fast_find_migrateblock can select an alternative block.  Disable
fast_find_migrateblock when the current pageblock scan should be
completed.

Link: https://lkml.kernel.org/r/20230125134434.18017-4-mgorman@techsingularity.net
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Cc: Chuyi Zhou <zhouchuyi@bytedance.com>
Cc: Jiri Slaby <jirislaby@kernel.org>
Cc: Maxim Levitsky <mlevitsk@redhat.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Pedro Falcato <pedro.falcato@gmail.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---


--- a/mm/compaction.c~mm-compaction-finish-scanning-the-current-pageblock-if-requested
+++ a/mm/compaction.c
@@ -1762,6 +1762,13 @@ static unsigned long fast_find_migratebl
 		return pfn;
 
 	/*
+	 * If the pageblock should be finished then do not select a different
+	 * pageblock.
+	 */
+	if (cc->finish_pageblock)
+		return pfn;
+
+	/*
 	 * If the migrate_pfn is not at the start of a zone or the start
 	 * of a pageblock then assume this is a continuation of a previous
 	 * scan restarted due to COMPACT_CLUSTER_MAX.
_

Patches currently in -mm which might be from mgorman@techsingularity.net are



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-03  6:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-03  6:38 [merged mm-stable] mm-compaction-finish-scanning-the-current-pageblock-if-requested.patch removed from -mm tree Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.