mm-migrate-correct-failure-handling-if-hugepage_migration_support.patch removed from -mm tree
Subsystems (2)
[email protected]
maintainerSubject: [merged] mm-migrate-correct-failure-handling-if-hugepage_migration_support.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 22 Jan 2014 12:15:06 -0800
The patch titled
Subject: mm/migrate: correct failure handling if !hugepage_migration_support()
has been removed from the -mm tree. Its filename was
mm-migrate-correct-failure-handling-if-hugepage_migration_support.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Joonsoo Kim <[email protected]>
Subject: mm/migrate: correct failure handling if !hugepage_migration_support()
We should remove the page from the list if we fail with ENOSYS, since migrate_pages() consider error cases except -ENOMEM and -EAGAIN as permanent failure and it assumes that the page would be removed from the list. Without this patch, we could overcount number of failure.
In addition, we should put back the new hugepage if !hugepage_migration_support(). If not, we would leak hugepage memory.
---
mm/migrate.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
mm/migrate.c renamed from mm/migrate.c~mm-migrate-correct-failure-handling-if-hugepage_migration_support +5 -2
@@ -1013,7 +1013,7 @@ static int unmap_and_move_huge_page(new_ {int rc =0 ;int *result =NULL ; -struct page *new_hpage =get_new_page (hpage, private, &result); +struct page *new_hpage;struct anon_vma *anon_vma =NULL ;/*
@@ -1023,9 +1023,12 @@ static int unmap_and_move_huge_page(new_* tables or check whether the hugepage is pmd-based or not before * kicking migration. */ -if (!hugepage_migration_support (page_hstate (hpage))) +if (!hugepage_migration_support (page_hstate (hpage))) { +putback_active_hugepage (hpage);return -ENOSYS ; + } + new_hpage =get_new_page (hpage, private, &result);if (!new_hpage)return -ENOMEM ;
_
Patches currently in -mm which might be from [email protected] are
origin.patch mm-nobootmemc-add-return-value-check-in-__alloc_memory_core_early.patch mm-free-memblockmemory-in-free_all_bootmem.patch mm-free-memblockmemory-in-free_all_bootmem-fix.patch