Skip to contentSkip to conversation

migrate_pages-fix-failure-counting-for-thp-subpages-retrying.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Sep 27, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: migrate_pages(): fix failure counting for THP subpages retrying
has been removed from the -mm tree. Its filename was
migrate_pages-fix-failure-counting-for-thp-subpages-retrying.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: Huang Ying <[email protected]>
Subject: migrate_pages(): fix failure counting for THP subpages retrying
Date: Wed, 17 Aug 2022 16:14:04 +0800

If THP is failed to be migrated for -ENOSYS and -ENOMEM, the THP will be split into thp_split_pages, and after other pages are migrated, pages in thp_split_pages will be migrated with no_subpage_counting == true, because its failure have been counted already. If some pages in thp_split_pages are retried during migration, we should not count their failure if no_subpage_counting == true too. This is done this patch to fix the failure counting for THP subpages retrying.

Fixes 5984fabb6e82 ("mm: move_pages: report the number of non-attempted pages")
Cc Zi Yan <[email protected]>
Cc Yang Shi <[email protected]>

---

 mm/migrate.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
mm/migrate.c renamed from mm/migrate.c~migrate_pages-fix-failure-counting-for-thp-subpages-retrying +2 -1
@@ -1545,7 +1545,8 @@ retry:
 			}
 		}
 	}
-	nr_failed += retry;
+	if (!no_subpage_counting)
+		nr_failed += retry;
 	nr_thp_failed += thp_retry;
 	/*
 	 * Try to migrate subpages of fail-to-migrate THPs, no nr_failed

_

Patches currently in -mm which might be from [email protected] are