From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by kanga.kvack.org (Postfix) with ESMTP id 95C9B6B0278 for ; Tue, 2 Oct 2018 10:59:33 -0400 (EDT) Received: by mail-ed1-f71.google.com with SMTP id c26-v6so1424269eda.7 for ; Tue, 02 Oct 2018 07:59:33 -0700 (PDT) Received: from mx1.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id x9-v6si759230edm.375.2018.10.02.07.59.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Oct 2018 07:59:32 -0700 (PDT) Date: Tue, 2 Oct 2018 16:59:22 +0200 From: Michal Hocko Subject: Re: [PATCH] migration/mm: Add WARN_ON to try_offline_node Message-ID: <20181002145922.GZ18290@dhcp22.suse.cz> References: <20181001185616.11427.35521.stgit@ltcalpine2-lp9.aus.stglabs.ibm.com> <20181001202724.GL18290@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Michael Bringmann Cc: Tyrel Datwyler , Thomas Falcon , Kees Cook , Mathieu Malaterre , Pavel Tatashin , Nicholas Piggin , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Mauricio Faria de Oliveira , Juliet Kim , Thiago Jung Bauermann , Nathan Fontenot , Andrew Morton , YASUAKI ISHIMATSU , linuxppc-dev@lists.ozlabs.org, Dan Williams , Oscar Salvador On Tue 02-10-18 09:51:40, Michael Bringmann wrote: [...] > When the device-tree affinity attributes have changed for memory, > the 'nid' affinity calculated points to a different node for the > memory block than the one used to install it, previously on the > source system. The newly calculated 'nid' affinity may not yet > be initialized on the target system. The current memory tracking > mechanisms do not record the node to which a memory block was > associated when it was added. Nathan is looking at adding this > feature to the new implementation of LMBs, but it is not there > yet, and won't be present in earlier kernels without backporting a > significant number of changes. Then the patch you have proposed here just papers over a real issue, no? IIUC then you simply do not remove the memory if you lose the race. -- Michal Hocko SUSE Labs