[RFC PATCH v1 0/4] mm, hwpoison: improve handling workload related to hugetlb and memory_hotplug

From: Naoya Horiguchi
Date: Wed Apr 27 2022 - 00:28:59 EST


Hi,

This patchset addresses some issues on the workload related to hwpoison,
hugetlb, and memory_hotplug. The problem in memory hotremove reported by
Miaohe Lin [1] is mentioned in 2/4. This patch depends on "storing raw
error info" functionality provided by 1/4. This patch also provide delayed
dissolve function too.

Patch 3/4 is to adjust unpoison to new semantics of HPageMigratable for
hwpoisoned hugepage. And 4/4 is the fix for the inconsistent counter issue.

[1] https://lore.kernel.org/linux-mm/20220421135129.19767-1-linmiaohe@xxxxxxxxxx/

Please let me know if you have any suggestions and comments.

Thanks,
Naoya Horiguchi
---
Summary:

Naoya Horiguchi (4):
mm, hwpoison, hugetlb: introduce SUBPAGE_INDEX_HWPOISON to save raw error page
mm,hwpoison,hugetlb,memory_hotplug: hotremove memory section with hwpoisoned hugepage
mm, hwpoison: add parameter unpoison to get_hwpoison_huge_page()
mm, memory_hotplug: fix inconsistent num_poisoned_pages on memory hotremove

include/linux/hugetlb.h | 29 +++++++++++++++++++++++++++--
mm/hugetlb.c | 24 ++++++++++++++++++++++--
mm/memory-failure.c | 8 ++++++--
mm/memory_hotplug.c | 23 +++++++++++------------
mm/page_alloc.c | 6 ++++++
5 files changed, 72 insertions(+), 18 deletions(-)