Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1503564imu; Tue, 11 Dec 2018 22:19:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/WXuSaahoybcLiPrC0Oa/Cfp6WfrKSPTOXsS9Okj3oZtBxa8dLguQ3zvjiZrFEdZtAStkg2 X-Received: by 2002:a62:4587:: with SMTP id n7mr18874234pfi.118.1544595556833; Tue, 11 Dec 2018 22:19:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544595556; cv=none; d=google.com; s=arc-20160816; b=UX1vRzma92vFcNBC57dhbYWf2PAO04V8t6abUq/+M6wb3llk4UlI59b3zl+O3rUsRL wqxLR/7A/BuOfxPY+IzEOZ1RlhB7W7B9Prr1m5KPn75Kahwt0BTB50pjHK+7UPZ69t/7 vviR1D6ecmvPHG0WWdjn7vWB1nzzNtchi98G0yqwz9mwRMSmOugvDrV6gF7zcNJV+IvV hYZNoalBGuR5mMPHg15UyGLy6YpdE/Huamv8crqtkcNP0dF/aezd6WffdkZFp5O0ssOO be5u7TOrByE9Oc3T1jM7P1+VfBWbgE5Xun8TA8XplFBqLGVndfLewtAYwWr1qK1PkW6D s0VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=ZjGb0CAIvkthaszsZ3Wm30r8lzHqUFJrc+LluQD+oKQ=; b=PI9yBLdEhMcFYfLQOs/gZLR5M5DNIW6yVwy/pEmIvtvP2kIfNezZeM78ETNRtAf/E8 ktZqFe2gi5Mf7HdXZJBFY0xBpXmpmh3sbn/aViohQOd9cN8aNd/qXeM/3H9pUCsxt1aI 89UHox9M/4Q3wLMU/1C5QRmvGfL5yyXzUmhsmrxcUfDI/kt1VD3NgZUrz5AQuKKEAjJt F3XiYrJ7fHeFR1AAEa2LOGP9wt8nPA570dBVIBWBAohZuyinpH7iBNQsPXrdgKsp9Tj5 2qrlPpvWlG73gaxSwlN50zVNoi9+FgvowczGhrQA0FLkuW+InH1JpfoFB7FlkwNjJMxA kjgQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13si13833025pfi.271.2018.12.11.22.18.57; Tue, 11 Dec 2018 22:19:16 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726490AbeLLGQr (ORCPT + 99 others); Wed, 12 Dec 2018 01:16:47 -0500 Received: from mx2.suse.de ([195.135.220.15]:59844 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726237AbeLLGQr (ORCPT ); Wed, 12 Dec 2018 01:16:47 -0500 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 61FB6AF07; Wed, 12 Dec 2018 06:16:45 +0000 (UTC) Message-ID: <1544595387.3125.2.camel@suse.de> Subject: Re: [PATCH v2] mm, memory_hotplug: Don't bail out in do_migrate_range prematurely From: Oscar Salvador To: Wei Yang Cc: akpm@linux-foundation.org, mhocko@suse.com, david@redhat.com, pasha.tatashin@soleen.com, dan.j.williams@gmail.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Date: Wed, 12 Dec 2018 07:16:27 +0100 In-Reply-To: <20181212033506.tyj747b7kzyvsp4c@master> References: <20181211135312.27034-1-osalvador@suse.de> <20181212033506.tyj747b7kzyvsp4c@master> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-12-12 at 03:35 +0000, Wei Yang wrote: > I see the above code is wrapped with CONFIG_DEBUG_VM on current Linus > tree. > This is removed by someone else? Yes, e8abbd69957288 ("mm, memory_hotplug: be more verbose for memory offline failures") got rid of the CONFIG_DEBUG_VM. This commit is sitting in the -mmotm tree. > > > - put_page(page); > > - /* Because we don't have big zone->lock. > > we should > > - check this again here. */ > > - if (page_count(page)) { > > - not_managed++; > > - ret = -EBUSY; > > - break; > > - } > > } > > + put_page(page); > > } > > if (!list_empty(&source)) { > > - if (not_managed) { > > - putback_movable_pages(&source); > > - goto out; > > - } > > - > > /* Allocate a new page from the nearest neighbor node > > */ > > ret = migrate_pages(&source, new_node_page, NULL, 0, > > MIGRATE_SYNC, > > MR_MEMORY_HOTPLUG); > > @@ -1426,7 +1412,7 @@ do_migrate_range(unsigned long start_pfn, > > unsigned long end_pfn) > > putback_movable_pages(&source); > > } > > } > > -out: > > + > > return ret; > > } > > > > -- > > 2.13.7 > > -- Oscar Salvador SUSE L3