Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1127199pxk; Fri, 25 Sep 2020 07:00:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlB+6XJ++0ahM5+7dNsuRmNwSiCJEd/yaQ6F3GFXmEzLSaX9fabQ3wGANcD0QGEDdmppBr X-Received: by 2002:a50:f081:: with SMTP id v1mr1499434edl.161.1601042438204; Fri, 25 Sep 2020 07:00:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601042438; cv=none; d=google.com; s=arc-20160816; b=EWy5257M8ktqY31Sc7+ROQMDqI+u81036zKeS6a3CBdYol8dKSHDfepi6qzDsz+LJb /Nnx1jpRJjcfYiLhJUCOFoAZeyzJU6mayyiXwHFw5Lc52fJJYxD/va3i8JX6ti4F9Nqp RVFEC2neZhNmElM6jTCNL4umMPVozfsz9BlGBAxTZNqkhLD/eYW+OcqRpLfMevpJUTNb 7wDRDezl43YBa/YvwBL+5bWe+9WNAy6oN7Q7QME2WBAbYwTkmF2g9qm6OGnNUzeGZSbU d0a1qiRq5vXNXSN/2u3Arf53aWqNqXFxQ8OgNDA0FJnguHrDRLB4ToHrKbB1SIsxtqd/ /M1g== 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=Fjibn5R6RqIuf88cXHIzMRY+iTbXLYmLueRrrnc4kK8=; b=fNv9ficoK/us2s+VqNrKuZADlKjXopXJ7SMvD8NPW/1hyI+TBQbu8/3a/fU9iGuC3/ t5NeH4//V+p77IKIDqZAHLyBSI7iWSz7eVyz/11L5sPTN3Uqr2mPp95XNonx15TLgtax qJLB/VPdImFuz+rAFBLt4sMw2S4llqtY5Qo6uO4NlkbzueG5Lucd+QIPK7SfhSGN0x6j JBN1ag0f0Z7BtdqSZ3ZTbmTQ55C2FZFXbgXyJikH7sQ/35Qg0b7ElNRSijni3MOBfazg NqKFNP4yqHutVWTEYabaNnhRWMU9NVRaQcdj6Igz2XkkHIxW7LxC91LdUu7GSVyfwN5U jerQ== 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 c33si1965044edf.530.2020.09.25.07.00.14; Fri, 25 Sep 2020 07:00:38 -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 S1728553AbgIYN5y (ORCPT + 99 others); Fri, 25 Sep 2020 09:57:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:49226 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728333AbgIYN5y (ORCPT ); Fri, 25 Sep 2020 09:57:54 -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 E48E8AC85; Fri, 25 Sep 2020 13:57:52 +0000 (UTC) Date: Fri, 25 Sep 2020 15:57:44 +0200 From: Oscar Salvador To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-hyperv@vger.kernel.org, xen-devel@lists.xenproject.org, linux-acpi@vger.kernel.org, Andrew Morton , Alexander Duyck , Mel Gorman , Michal Hocko , Dave Hansen , Vlastimil Babka , Wei Yang , Mike Rapoport , Scott Cheloha , Michael Ellerman Subject: Re: [PATCH RFC 3/4] mm/page_alloc: always move pages to the tail of the freelist in unset_migratetype_isolate() Message-ID: <20200925135744.GC3910@linux> References: <20200916183411.64756-1-david@redhat.com> <20200916183411.64756-4-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200916183411.64756-4-david@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 16, 2020 at 08:34:10PM +0200, David Hildenbrand wrote: > Page isolation doesn't actually touch the pages, it simply isolates > pageblocks and moves all free pages to the MIGRATE_ISOLATE freelist. > > We already place pages to the tail of the freelists when undoing > isolation via __putback_isolated_page(), let's do it in any case > (e.g., if order == pageblock_order) and document the behavior. > > This change results in all pages getting onlined via online_pages() to > be placed to the tail of the freelist. > > Cc: Andrew Morton > Cc: Alexander Duyck > Cc: Mel Gorman > Cc: Michal Hocko > Cc: Dave Hansen > Cc: Vlastimil Babka > Cc: Wei Yang > Cc: Oscar Salvador > Cc: Mike Rapoport > Cc: Scott Cheloha > Cc: Michael Ellerman > Signed-off-by: David Hildenbrand LGTM. Feel the same way about move_freepages_block_tail/move_freepages_block_tail wrappers, I think we are better off without them. Reviewed-by: Oscar Salvador Thanks -- Oscar Salvador SUSE L3