[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f0c61403-b7a1-d1af-f52c-7be307365ee9@redhat.com>
Date: Thu, 16 Aug 2018 20:43:34 +0200
From: David Hildenbrand <david@...hat.com>
To: Oscar Salvador <osalvador@...hadventures.net>,
akpm@...ux-foundation.org
Cc: mhocko@...e.com, vbabka@...e.cz, dan.j.williams@...el.com,
yasu.isimatu@...il.com, jonathan.cameron@...wei.com,
Pavel.Tatashin@...rosoft.com, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, Oscar Salvador <osalvador@...e.de>
Subject: Re: [PATCH v3 4/4] mm/memory_hotplug: Drop node_online check in
unregister_mem_sect_under_nodes
On 15.08.2018 16:42, Oscar Salvador wrote:
> From: Oscar Salvador <osalvador@...e.de>
>
> We are getting the nid from the pages that are not yet removed,
> but a node can only be offline when its memory/cpu's have been removed.
> Therefore, we know that the node is still online.
>
> Signed-off-by: Oscar Salvador <osalvador@...e.de>
> ---
> drivers/base/node.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/base/node.c b/drivers/base/node.c
> index 81b27b5b1f15..b23769e4fcbb 100644
> --- a/drivers/base/node.c
> +++ b/drivers/base/node.c
> @@ -465,8 +465,6 @@ void unregister_mem_sect_under_nodes(struct memory_block *mem_blk,
>
> if (nid < 0)
> continue;
> - if (!node_online(nid))
> - continue;
> /*
> * It is possible that NODEMASK_ALLOC fails due to memory
> * pressure.
>
Sounds reasonable to me
Reviewed-by: David Hildenbrand <david@...hat.com>
--
Thanks,
David / dhildenb
Powered by blists - more mailing lists