[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z-FfAUiGePF9mnPS@gourry-fedora-PF4VCD3F>
Date: Mon, 24 Mar 2025 09:32:49 -0400
From: Gregory Price <gourry@...rry.net>
To: Rakie Kim <rakie.kim@...com>
Cc: akpm@...ux-foundation.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, linux-cxl@...r.kernel.org,
joshua.hahnjy@...il.com, dan.j.williams@...el.com,
ying.huang@...ux.alibaba.com, david@...hat.com,
Jonathan.Cameron@...wei.com, kernel_team@...ynix.com,
honggyu.kim@...com, yunjeong.mun@...com
Subject: Re: [PATCH v3 3/3] mm/mempolicy: Support memory hotplug in weighted
interleave
On Mon, Mar 24, 2025 at 05:54:27PM +0900, Rakie Kim wrote:
>
> I'm sorry, the code is missing.
> I may not fully understand the scenario you described, but I think your concern
> can be addressed by adding a simple check like the following:
>
> case MEM_OFFLINE:
> if (!node_state(nid, N_MEMORY)) --> this point
> sysfs_wi_node_release(nid);
>
This should work. I have some questions about whether there might be
some subtle race conditions with this implementation, but I can take a
look after LSFMM. (Example: Two blocks being offlined/onlined at the
same time, is state(nid, N_MEMORY) a raced value?)
~Gregory
Powered by blists - more mailing lists