stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + mm-soft-offline-return-ebusy-if-set_hwpoison_free_buddy_page-fails.patch added to -mm tree
@ 2019-06-10 21:22 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2019-06-10 21:22 UTC (permalink / raw)
  To: mm-commits, xishi.qiuxishi, stable, qiuxu.zhuo, mike.kravetz,
	mhocko, jerry.t.chen, n-horiguchi


The patch titled
     Subject: mm: soft-offline: return -EBUSY if set_hwpoison_free_buddy_page() fails
has been added to the -mm tree.  Its filename is
     mm-soft-offline-return-ebusy-if-set_hwpoison_free_buddy_page-fails.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/mm-soft-offline-return-ebusy-if-set_hwpoison_free_buddy_page-fails.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-soft-offline-return-ebusy-if-set_hwpoison_free_buddy_page-fails.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: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Subject: mm: soft-offline: return -EBUSY if set_hwpoison_free_buddy_page() fails

The pass/fail of soft offline should be judged by checking whether the raw
error page was finally contained or not (i.e.  the result of
set_hwpoison_free_buddy_page()), but current code do not work like that. 
So this patch is suggesting to fix it.

Link: http://lkml.kernel.org/r/1560154686-18497-2-git-send-email-n-horiguchi@ah.jp.nec.com
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Fixes: 6bc9b56433b76 ("mm: fix race on soft-offlining")
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Xishi Qiu <xishi.qiuxishi@alibaba-inc.com>
Cc: "Chen, Jerry T" <jerry.t.chen@intel.com>
Cc: "Zhuo, Qiuxu" <qiuxu.zhuo@intel.com>
Cc: <stable@vger.kernel.org>	[4.19+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/memory-failure.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/mm/memory-failure.c~mm-soft-offline-return-ebusy-if-set_hwpoison_free_buddy_page-fails
+++ a/mm/memory-failure.c
@@ -1730,6 +1730,8 @@ static int soft_offline_huge_page(struct
 		if (!ret) {
 			if (set_hwpoison_free_buddy_page(page))
 				num_poisoned_pages_inc();
+			else
+				ret = -EBUSY;
 		}
 	}
 	return ret;
_

Patches currently in -mm which might be from n-horiguchi@ah.jp.nec.com are

mm-soft-offline-return-ebusy-if-set_hwpoison_free_buddy_page-fails.patch
mm-hugetlb-soft-offline-dissolve_free_huge_page-return-zero-on-pagehuge.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-10 21:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-10 21:22 + mm-soft-offline-return-ebusy-if-set_hwpoison_free_buddy_page-fails.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).