mm-hwpoison-add-in-use-hugepage-hwpoison-filter-judgement.patch removed from -mm tree
The patch titled
Subject: mm/hwpoison: add in-use hugepage hwpoison filter judgement
has been removed from the -mm tree. Its filename was
mm-hwpoison-add-in-use-hugepage-hwpoison-filter-judgement.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: luofei <[email protected]>
Subject: mm/hwpoison: add in-use hugepage hwpoison filter judgement
After successfully obtaining the reference count of the huge page, it is still necessary to call hwpoison_filter() to make a filter judgement, otherwise the filter hugepage will be unmaped and the related process may be killed.
Signed-off-by luofei <[email protected]>
Reviewed-by Miaohe Lin <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Dave Hansen <[email protected]>
Cc H. Peter Anvin <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Naoya Horiguchi <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Tony Luck <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/memory-failure.c | 8 ++++++++ 1 file changed, 8 insertions(+)
mm/memory-failure.c renamed from mm/memory-failure.c~mm-hwpoison-add-in-use-hugepage-hwpoison-filter-judgement +8 -0
@@ -1534,6 +1534,14 @@ static int memory_failure_hugetlb(unsignlock_page (head); page_flags = head->flags; +if (hwpoison_filter (p)) { +if (TestClearPageHWPoison (head)) +num_poisoned_pages_dec (); +put_page (p); + res = -EOPNOTSUPP ; + goto out; + } +/* * TODO: hwpoison for pud-sized hugetlb doesn't work right now, so * simply disable it. In order to make it work properly, we need
_
Patches currently in -mm which might be from [email protected] are