]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm, hwpoison: make unpoison aware of raw error info in hwpoisoned hugepage
authorNaoya Horiguchi <naoya.horiguchi@nec.com>
Thu, 14 Jul 2022 04:24:16 +0000 (13:24 +0900)
committerakpm <akpm@linux-foundation.org>
Wed, 20 Jul 2022 21:41:52 +0000 (14:41 -0700)
commitdebb6b9c3fdd451c512f2613bd268278f3e5e05b
tree901c8e14139a97c66f8f08a1647340c97890ae0a
parent73a8e289fb459227d0dd34605404d3d9a87e2b9b
mm, hwpoison: make unpoison aware of raw error info in hwpoisoned hugepage

Raw error info list needs to be removed when hwpoisoned hugetlb is
unpoisoned.  And unpoison handler needs to know how many errors there are
in the target hugepage.  So add them.

HPageVmemmapOptimized(hpage) and HPageRawHwpUnreliable(hpage)) sometimes
can't be unpoisoned, so skip them.

Link: https://lkml.kernel.org/r/20220714042420.1847125-5-naoya.horiguchi@linux.dev
Signed-off-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Liu Shixin <liushixin2@huawei.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Yang Shi <shy828301@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/swapops.h
mm/memory-failure.c