Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp281331pxy; Wed, 21 Apr 2021 02:53:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDlENnYMN+2RVLrDVMXjUW6yh9MnC/j42R8eaQySeqEZUMCe16U1pmW4XbxGzL7+d5P/uz X-Received: by 2002:a17:906:b156:: with SMTP id bt22mr27988386ejb.181.1618998795471; Wed, 21 Apr 2021 02:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618998795; cv=none; d=google.com; s=arc-20160816; b=gLmU7s+tbolvDVckD2oxsBzvPy64yIGAZUyB7NqLri1EcJJLz1qqtOTxPzohLcA+v7 a4Q4/V3t9Y98xNotBOZMY7YVfa+i9jRM2b27dTKBfJMBZHQzqa2kr9ABR00V8Fu574cT AjVM8NwKBTIPhR8yRPs+T0DuXhgM3cGtseaSi2Hm/7K+vp7Cizb8oqVMi3QtXX6CwUIv IJL8k+eOaLgxZKVptfUVJpm5w4zanPw+QI4XjudJ/8XyKVySyrjq3zEGE1Co6tvUSarb mPY1PkRqz1nT194Q3F6cgW5wHfMdlySf7nLIMHmtfrGasWuUoGUEbtfqt5LYVMcZABr2 K5SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=L+DxZEEszijquGGgGYp2qZaDiw3P8qnqFAiPuVVdcME=; b=aoy8jZltDoquXVIGBNHj9m5vUwFfRQzm/mAMRCxEq0GiXVDFguQ6UEz6ev8g/k/wvY iEtPg6uLwbpGmRXSJWLKQpvNJPSVzd824a/YC9rWQFmZNP8vcLjm3XpR62Mgqtqnq91V RCYZg8onn2atysVTpPKpD/X4exK8zPvqetikg7h2DUEIbBVWsec7tal1n3QVpx5XTguU CIRa51GLaumGlIyClRLbs+h6h2qrbk1Kp3bI6O1nE7I0swoJdCLhs+IF4M7P7eNGC1Sd lJjNUKm5rFp0vx/EOpLztH1RVZFXL0SuR4zi+iYH9d4oQnx8AjwFFDRQZfY1jQZBPiih WN7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si1694168edi.195.2021.04.21.02.52.52; Wed, 21 Apr 2021 02:53:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236968AbhDUHiV (ORCPT + 99 others); Wed, 21 Apr 2021 03:38:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:56036 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235107AbhDUHiV (ORCPT ); Wed, 21 Apr 2021 03:38:21 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 7A70FB118; Wed, 21 Apr 2021 07:37:47 +0000 (UTC) Date: Wed, 21 Apr 2021 09:37:44 +0200 From: Oscar Salvador To: Michal Hocko Cc: Andrew Morton , David Hildenbrand , Anshuman Khandual , Pavel Tatashin , Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v9 2/8] mm,memory_hotplug: Relax fully spanned sections check Message-ID: <20210421073744.GB22456@linux> References: <20210416112411.9826-1-osalvador@suse.de> <20210416112411.9826-3-osalvador@suse.de> 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 20, 2021 at 11:40:50AM +0200, Michal Hocko wrote: > On Fri 16-04-21 13:24:05, Oscar Salvador wrote: > > When using self-hosted vmemmap pages, the number of pages passed to > > {online,offline}_pages might not fully span sections, but they always > > fully span pageblocks. > > Relax the check account for that case. > > It would be good to call those out explicitly. It would be also > great to explain why pageblock_nr_pages is an actual constrain. There > shouldn't be any real reason for that except for "we want online_pages > to operate on whole memblocks and memmap_on_memory will poke > pageblock_nr_pages aligned holes in the beginning which is a special > case we want to allow." Sounds good. > > > Signed-off-by: Oscar Salvador > > Reviewed-by: David Hildenbrand > > With the changelog extended and the comment clarification (se below) > feel free to add Ok, thanks for the suggestion Michal. > Acked-by: Michal Hocko -- Oscar Salvador SUSE L3