mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + hwpoison-soft-offlining-for-non-lru-movable-page-v4.patch added to -mm tree
@ 2017-01-25 23:26 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2017-01-25 23:26 UTC (permalink / raw)
  To: xieyisheng1, mm-commits


The patch titled
     Subject: hwpoison-soft-offlining-for-non-lru-movable-page-v4
has been added to the -mm tree.  Its filename is
     hwpoison-soft-offlining-for-non-lru-movable-page-v4.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/hwpoison-soft-offlining-for-non-lru-movable-page-v4.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/hwpoison-soft-offlining-for-non-lru-movable-page-v4.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/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Yisheng Xie <xieyisheng1@huawei.com>
Subject: hwpoison-soft-offlining-for-non-lru-movable-page-v4

Link: http://lkml.kernel.org/r/1485356738-4831-3-git-send-email-ysxie@foxmail.com
Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

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

diff -puN mm/memory-failure.c~hwpoison-soft-offlining-for-non-lru-movable-page-v4 mm/memory-failure.c
--- a/mm/memory-failure.c~hwpoison-soft-offlining-for-non-lru-movable-page-v4
+++ a/mm/memory-failure.c
@@ -1652,8 +1652,8 @@ static int __soft_offline_page(struct pa
 	 */
 	if (PageLRU(page))
 		ret = isolate_lru_page(page);
-	else
-		ret = !isolate_movable_page(page, ISOLATE_UNEVICTABLE);
+	else if (!isolate_movable_page(page, ISOLATE_UNEVICTABLE))
+		ret = -EBUSY;
 	/*
 	 * Drop page reference which is came from get_any_page()
 	 * successful isolate_lru_page() already took another one.
_

Patches currently in -mm which might be from xieyisheng1@huawei.com are

hwpoison-soft-offlining-for-non-lru-movable-page.patch
hwpoison-soft-offlining-for-non-lru-movable-page-v4.patch


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

only message in thread, other threads:[~2017-01-25 23:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-25 23:26 + hwpoison-soft-offlining-for-non-lru-movable-page-v4.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).