The patch titled Subject: mm/memory-failure: fix return wrong value when isolate page fail has been added to the -mm tree. Its filename is mmhwpoison-refactor-soft_offline_huge_page-and-__soft_offline_page-fix-2.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mmhwpoison-refactor-soft_offline_huge_page-and-__soft_offline_page-fix-2.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mmhwpoison-refactor-soft_offline_huge_page-and-__soft_offline_page-fix-2.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Muchun Song <songmuchun@xxxxxxxxxxxxx> Subject: mm/memory-failure: fix return wrong value when isolate page fail When we isolate page fail, we should not return 0, because we do not set page HWPoison on any page. Link: https://lore.kernel.org/lkml/20200811220643.GB39857@xxxxxx/ Link: http://lkml.kernel.org/r/20200830081053.64981-1-songmuchun@xxxxxxxxxxxxx Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx> Reported-by: Qian Cai <cai@xxxxxx> Reviewed-by: Qian Cai <cai@xxxxxx> Cc: Naoya Horiguchi <naoya.horiguchi@xxxxxxx> Cc: Oscar Salvador <osalvador@xxxxxxx> Cc: Dan Williams <dan.j.williams@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memory-failure.c | 1 + 1 file changed, 1 insertion(+) --- a/mm/memory-failure.c~mmhwpoison-refactor-soft_offline_huge_page-and-__soft_offline_page-fix-2 +++ a/mm/memory-failure.c @@ -1847,6 +1847,7 @@ static int __soft_offline_page(struct pa } else { pr_info("soft offline: %#lx: %s isolation failed: %d, page count %d, type %lx (%pGp)\n", pfn, msg_page[huge], ret, page_count(page), page->flags, &page->flags); + ret = -EBUSY; } return ret; } _ Patches currently in -mm which might be from songmuchun@xxxxxxxxxxxxx are mmhwpoison-refactor-soft_offline_huge_page-and-__soft_offline_page-fix-2.patch