Return-Path: Received: from mail-pl0-f69.google.com (mail-pl0-f69.google.com [209.85.160.69]) by kanga.kvack.org (Postfix) with ESMTP id 67EFF6B0006 for ; Tue, 22 May 2018 08:56:53 -0400 (EDT) Received: by mail-pl0-f69.google.com with SMTP id 89-v6so12157905plc.1 for ; Tue, 22 May 2018 05:56:53 -0700 (PDT) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id o65-v6si1167078pfb.188.2018.05.22.05.56.51 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 22 May 2018 05:56:51 -0700 (PDT) Date: Tue, 22 May 2018 14:56:49 +0200 From: Michal Hocko Subject: Re: [PATCH] mm/memory_hotplug: Fix leftover use of struct page during hotplug Message-ID: <20180522125649.GK20020@dhcp22.suse.cz> References: <20180504085311.1240-1-Jonathan.Cameron@huawei.com> <20180504160844.GB23560@dhcp22.suse.cz> <20180504175051.000009e8@huawei.com> <20180510120200.GC5325@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180510120200.GC5325@dhcp22.suse.cz> Sender: owner-linux-mm@kvack.org List-ID: To: Jonathan Cameron Cc: linux-mm , linuxarm@huawei.com, Pavel Tatashin , Andrew Morton On Thu 10-05-18 14:02:00, Michal Hocko wrote: > On Fri 04-05-18 17:50:51, Jonathan Cameron wrote: > [...] > > Exact path to the problem is as follows: > > > > mm/memory_hotplug.c : add_memory_resource > > The node is not online so we enter the > > if (new_node) twice, on the second such block there is a call to > > link_mem_sections which calls into > > drivers/node.c: link_mem_sections which calls > > drivers/node.c: register_mem_sect_under_node which calls > > get_nid_for_pfn and keeps trying until the output of that matches > > the expected node (passed all the way down from add_memory_resource) > > I am sorry but I am still confused. Why don't we create sysfs files from > __add_pages > __add_section > hotplug_memory_register > register_mem_sect_under_node > ping? -- Michal Hocko SUSE Labs