[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191017114458.x4atu3vy7ogddvbm@box>
Date: Thu, 17 Oct 2019 14:44:58 +0300
From: "Kirill A. Shutemov" <kirill@...temov.name>
To: Dave Hansen <dave.hansen@...ux.intel.com>
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
dan.j.williams@...el.com, keith.busch@...el.com
Subject: Re: [PATCH 1/4] node: Define and export memory migration path
On Thu, Oct 17, 2019 at 02:12:05PM +0300, Kirill A. Shutemov wrote:
> > + spin_lock(&node_migration_lock);
> > + WRITE_ONCE(node_migration[nid], TERMINAL_NODE);
> > + spin_unlock(&node_migration_lock);
> > + return count;
> > + }
> > + if (next >= MAX_NUMNODES || !node_online(next))
> > + return -EINVAL;
>
> What prevents offlining after the check?
And what is story with memory hotplug interaction? I don't see any hooks
into memory hotplug to adjust migration path on offlining. Hm?
--
Kirill A. Shutemov
Powered by blists - more mailing lists