From: Oscar Salvador <osalvador@suse.de>
To: Miaohe Lin <linmiaohe@huawei.com>
Cc: David Hildenbrand <david@redhat.com>,
akpm@linux-foundation.org, shy828301@gmail.com,
nao.horiguchi@gmail.com, xuyu@linux.alibaba.com,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] mm/huge_memory: don't unpoison huge_zero_folio
Date: Thu, 16 May 2024 11:07:04 +0200 [thread overview]
Message-ID: <ZkXMuHcWPBXy9sT3@localhost.localdomain> (raw)
In-Reply-To: <fd1b4d3f-be4c-16e2-00d9-8ea6443c68f3@huawei.com>
On Thu, May 16, 2024 at 04:45:22PM +0800, Miaohe Lin wrote:
> Thanks for your comment. Do you mean something like below?
>
> diff --git a/mm/memory-failure.c b/mm/memory-failure.c
> index 16ada4fb02b7..a9fe9eda593f 100644
> --- a/mm/memory-failure.c
> +++ b/mm/memory-failure.c
> @@ -2546,6 +2546,13 @@ int unpoison_memory(unsigned long pfn)
> goto unlock_mutex;
> }
>
> + if (is_huge_zero_folio(folio)) {
> + unpoison_pr_info("Unpoison: huge zero page is not supported %#lx\n",
> + pfn, &unpoison_rs);
> + ret = -EOPNOTSUPP;
> + goto unlock_mutex;
> + }
> +
> if (!PageHWPoison(p)) {
> unpoison_pr_info("Unpoison: Page was already unpoisoned %#lx\n",
> pfn, &unpoison_rs);
Yes, something like that makes much more sense to me.
Thanks
--
Oscar Salvador
SUSE Labs
next prev parent reply other threads:[~2024-05-16 9:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-15 2:36 [PATCH v2] mm/huge_memory: don't unpoison huge_zero_folio Miaohe Lin
2024-05-15 15:55 ` David Hildenbrand
2024-05-16 8:26 ` Oscar Salvador
2024-05-16 8:45 ` Miaohe Lin
2024-05-16 9:07 ` Oscar Salvador [this message]
2024-05-15 15:58 ` Yang Shi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZkXMuHcWPBXy9sT3@localhost.localdomain \
--to=osalvador@suse.de \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=linmiaohe@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=nao.horiguchi@gmail.com \
--cc=shy828301@gmail.com \
--cc=xuyu@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.