[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250325102804.1020-1-rakie.kim@sk.com>
Date: Tue, 25 Mar 2025 19:27:39 +0900
From: Rakie Kim <rakie.kim@...com>
To: Gregory Price <gourry@...rry.net>
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,
Rakie Kim <rakie.kim@...com>
Subject: Re: [PATCH v3 3/3] mm/mempolicy: Support memory hotplug in weighted interleave
On Mon, 24 Mar 2025 09:32:49 -0400 Gregory Price <gourry@...rry.net> wrote:
> 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
I will also further review the code for any race condition
issues. I intend to update v4 to incorporate the discussions
from this patch series. Your feedback and review of v4 after
LSFMM would be greatly appreciated.
Rakie
Powered by blists - more mailing lists