Skip to content

Commit b61051e

Browse files
committed
mm, compaction: finish scanning the current pageblock if requested
jira LE-4623 Rebuild_History Non-Buildable kernel-4.18.0-553.81.1.el8_10 commit-author Mel Gorman <mgorman@techsingularity.net> commit f9d7fc1 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> (cherry picked from commit f9d7fc1) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent e9f58af commit b61051e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mm/compaction.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1710,6 +1710,13 @@ static unsigned long fast_find_migrateblock(struct compact_control *cc)
17101710
if (cc->ignore_skip_hint)
17111711
return pfn;
17121712

1713+
/*
1714+
* If the pageblock should be finished then do not select a different
1715+
* pageblock.
1716+
*/
1717+
if (cc->finish_pageblock)
1718+
return pfn;
1719+
17131720
/*
17141721
* If the migrate_pfn is not at the start of a zone or the start
17151722
* of a pageblock then assume this is a continuation of a previous

0 commit comments

Comments
 (0)