[PATCH 0/4] HWpoison: further fixes and cleanups

From: Oscar Salvador
Date: Wed Sep 02 2020 - 05:45:39 EST


The important bit of this patchset is patch#1, which is a fix to take off
HWPoison pages off a buddy freelist since it can lead to us having HWPoison
pages back in the game and no one noticing it is handling a HWPoison page.
So fix it (we did that already for soft_offline_page [1]).

The other patches are clean-ups and not that important, so if anything,
consider patch#1 for inclusion.

Thanks


Oscar Salvador (4):
mm,hwpoison: Take free pages off the buddy freelists
mm,hwpoison: Refactor madvise_inject_error
mm,hwpoison: Drain pcplists before bailing out for non-buddy
zero-refcount page
mm,hwpoison: Drop unneeded pcplist draining

mm/madvise.c | 34 +++++++++++++---------------------
mm/memory-failure.c | 39 +++++++++++++++++++++++++++++++++++----
2 files changed, 48 insertions(+), 25 deletions(-)

--
2.26.2