Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1422977imm; Tue, 2 Oct 2018 08:00:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Kymg1kHMy1g+QuWj/bKHeCrY/GeLHVAGr2kmSVwhtKMW5ChnnLO98yBYqicM/Zp8Uldbe X-Received: by 2002:a62:cc0e:: with SMTP id a14-v6mr16681401pfg.131.1538492450311; Tue, 02 Oct 2018 08:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538492450; cv=none; d=google.com; s=arc-20160816; b=FS11bVBD1GbrrVgjZl2pSFMpXw1/COV01IXp/MdQORv5DxW2ywMzm/KZHi7XDDH9fE fnlavEbcX0jabDBaF50bBwfGdd99jfetJPZRdniux0hE5K0qOu++C3grlc7kkBscZfqp PdNn29mUx9vtvo0Abi+s8twsWOCwXGlQbhX6p/1mwM2lBgMruk8U1SWLtpJJTzt+HGPq 1Vp1VyGuOYchvyydN2mH69rNIlfxdeA/a7vVry7/QzlhiJtqSPr1bu8iN/HFuI0MDH7c bmxvLlKtC5fTo5vtv7L64dRBUEd/nGSiPyCAytrUSPCt+l9VoBY319u0quzxcr34kaMN 2Uzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=RxDkrOvI8rQk4OF2IFQXL7lO9LSbPXAKzwcWtuNElaY=; b=rvvVU0Ee5gewTZiZNFjZou9K4qpnIUhtZulIvJl00XvSTT1gbzHquIIdi/as+xJ47A mb4KdxXPY1aLen/I2S6TQarghgpse6aNnnOb0OFcBoTF2qDp4m7RtqudyfTXTwRqF/sH Hakcvn1fP3deV5kOO/b8IWtl5FVnO7hHUbQ9v9eMLAJfBqrMsJUAUECYrQDiSpB9ZYR0 M2yWXL9sLIwJQQC1mU/Nr9KCLusS840YyirCgHkrY5w6j3rShZLaAOno4F2scId0SoFB Xdkka1mnODMFVoS4pWeMzIJCRUgmJohl8+mE0qjan2oEmiSHSzdrWVfx/LhpP0adadhE SHEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7-v6si15653683plv.413.2018.10.02.08.00.33; Tue, 02 Oct 2018 08:00:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729049AbeJBVnV (ORCPT + 99 others); Tue, 2 Oct 2018 17:43:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:34772 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727113AbeJBVnV (ORCPT ); Tue, 2 Oct 2018 17:43:21 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 70DA6AF6E; Tue, 2 Oct 2018 14:59:31 +0000 (UTC) Date: Tue, 2 Oct 2018 16:59:22 +0200 From: Michal Hocko 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 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: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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