Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752955AbdDMM7E (ORCPT ); Thu, 13 Apr 2017 08:59:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:42209 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751054AbdDMM7D (ORCPT ); Thu, 13 Apr 2017 08:59:03 -0400 Subject: Re: [PATCH 3/9] mm: drop page_initialized check from get_nid_for_pfn To: Michal Hocko , linux-mm@kvack.org References: <20170410110351.12215-1-mhocko@kernel.org> <20170410110351.12215-4-mhocko@kernel.org> Cc: Andrew Morton , Mel Gorman , Andrea Arcangeli , Jerome Glisse , Reza Arbab , Yasuaki Ishimatsu , qiuxishi@huawei.com, Kani Toshimitsu , slaoub@gmail.com, Joonsoo Kim , Andi Kleen , David Rientjes , Daniel Kiper , Igor Mammedov , Vitaly Kuznetsov , LKML , Michal Hocko From: Vlastimil Babka Message-ID: <1157048b-512d-277b-b005-3703ffec4907@suse.cz> Date: Thu, 13 Apr 2017 14:59:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170410110351.12215-4-mhocko@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 899 Lines: 19 On 04/10/2017 01:03 PM, Michal Hocko wrote: > From: Michal Hocko > > c04fc586c1a4 ("mm: show node to memory section relationship with > symlinks in sysfs") has added means to export memblock<->node > association into the sysfs. It has also introduced get_nid_for_pfn > which is a rather confusing counterpart of pfn_to_nid which checks also > whether the pfn page is already initialized (page_initialized). This > is done by checking page::lru != NULL which doesn't make any sense at > all. Nothing in this path really relies on the lru list being used or > initialized. Just remove it because this will become a problem with > later patches. > > Thanks to Reza Arbab for testing which revealed this to be a problem > (http://lkml.kernel.org/r/20170403202337.GA12482@dhcp22.suse.cz) > > Signed-off-by: Michal Hocko Acked-by: Vlastimil Babka