From: "Oscar Salvador (SUSE)" <osalvador@kernel.org>
To: "David Hildenbrand (Arm)" <david@kernel.org>
Cc: Mani Tofigh <mt4022@columbia.edu>,
Oscar Salvador <osalvador@suse.de>,
Andrew Morton <akpm@linux-foundation.org>,
Miaohe Lin <linmiaohe@huawei.com>,
Naoya Horiguchi <nao.horiguchi@gmail.com>,
Vlastimil Babka <vbabka@kernel.org>,
Gregory Price <gourry@gourry.net>,
linux-mm@kvack.org, linux-cxl@vger.kernel.org,
linux-kernel@vger.kernel.org, tz2294@columbia.edu,
stable@vger.kernel.org
Subject: Re: [PATCH v2] mm/memory_hotplug: don't offline a hwpoisoned page still in the page cache
Date: Thu, 26 Nov 2026 10:22:14 +0100 [thread overview]
Message-ID: <awf6RghUETgb41pr@localhost.localdomain> (raw)
In-Reply-To: <89037847-8875-4d8b-a8f3-d77a59aaddea@kernel.org>
On Mon, Nov 23, 2026 at 08:45:37PM +0100, David Hildenbrand (Arm) wrote:
> We'll have to find a way to make that reliable. Everything else is just hacking
> around it.
>
> Why can we block concurrent offlining through get_online_mems/put_online_mems?
> But I hate these functions.
>
> Or alternatively (better?), have a memory notifier that block concurrent
> memory_failure() by grabbing the mf_mutex when MEM_GOING_OFFLINE and releasing
> it when MEM_CANCEL_OFFLINE/MEM_OFFLINE.
I think this is the way to go.
memory-failure is a shaky operation and over the years we have seen how challenging
was to interact with other parts of the kernel without crashing.
IMHO, we can try to be clever and try to workaround those issues
(memhotplug vs memfailure) or just make the two exclusive.
@Miaohe: Thoughts?
--
Oscar Salvador
SUSE Labs
next prev parent reply other threads:[~2026-11-26 9:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 20:50 Mani Tofigh via B4 Relay
2026-11-06 20:58 ` David Hildenbrand (Arm)
2026-11-23 5:46 ` Mani Tofigh
2026-11-23 19:45 ` David Hildenbrand (Arm)
2026-11-26 9:22 ` Oscar Salvador (SUSE) [this message]
2026-11-23 12:29 ` Miaohe Lin
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=awf6RghUETgb41pr@localhost.localdomain \
--to=osalvador@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=gourry@gourry.net \
--cc=linmiaohe@huawei.com \
--cc=linux-cxl@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mt4022@columbia.edu \
--cc=nao.horiguchi@gmail.com \
--cc=osalvador@suse.de \
--cc=stable@vger.kernel.org \
--cc=tz2294@columbia.edu \
--cc=vbabka@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®