[PATCH v4 0/7] HWpoison: further fixes and cleanups
From: Oscar Salvador
Date: Thu Sep 17 2020 - 04:27:58 EST
This patchset includes some fixups (patch#1,patch#2 and patch#3)
and some cleanups (patch#4-7).
Patch#1 is a fix to take off HWPoison pages off a buddy freelist since
it can lead us to having HWPoison pages back in the game without no one
So fix it (we did that already for soft_offline_page ).
Patch#2 is fixing a rebasing problem that made the call
to page_handle_poison from _soft_offline_page set the
wrong value for hugepage_or_freepage. 
Patch#3 is not really a fixup, but tries to re-handle a page
in case it was allocated under us.
Oscar Salvador (7):
mm,hwpoison: take free pages off the buddy freelists
mm,hwpoison: Do not set hugepage_or_freepage unconditionally
mm,hwpoison: Try to narrow window race for free pages
mm,hwpoison: refactor madvise_inject_error
mm,hwpoison: drain pcplists before bailing out for non-buddy
mm,hwpoison: drop unneeded pcplist draining
mm,hwpoison: remove stale code
mm/madvise.c | 36 +++++++++++----------------
mm/memory-failure.c | 59 +++++++++++++++++++++++++++++++++------------
2 files changed, 58 insertions(+), 37 deletions(-)