Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4812280rwb; Tue, 20 Sep 2022 21:41:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6R7SgpF81TmqYzyMYCpaxMdrW7VtON6Woh3sgIZTmJc1Jb7KxcSUbMQBpwHWck0qfOEXtz X-Received: by 2002:a17:902:cec8:b0:178:1b77:5afe with SMTP id d8-20020a170902cec800b001781b775afemr2867698plg.63.1663735307115; Tue, 20 Sep 2022 21:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663735307; cv=none; d=google.com; s=arc-20160816; b=eUYhhudNrXHeCQisJaqIpeQ19yuU2kvfLyRZq/JyHvsHniHql3zDjOLYAAYKmBJWIa wFH7jcf7ZJhoeN5Zpf5R5bjqrhqweOwDO/DF55j4d+HK1lK8YcgzPktc9yX/SX2MWU7S UiDxmHoAJoTsadS8FiiUZ+ziQvhw7+M1g7Khc1K5a4LohwtfspHxIedWoLEO/ydMEWVq edUPp2lZHtwaifttHiSwJhVhtiME2fhYsHTdr8E8bD8N8Dg+eaAs7O3KG8XbuOQ5Sd4t lAKoaZkYpdtyPmptvQlzmw0KMfT7LoKRG87VrBf+Tu8pjXCR0hOgQiQI63tOxwima0cR np9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=nIbc/7y4eQaQeiEASLP8Mx3nQNV8bI27qmhnLRpUYVw=; b=CRTs6Tseap2jRsv+UEWqTFguWf3q7/JJFGeaxExa3ZMz1kT+oinqyFHg0xwNo+7VDk 6TQfiw9qLcOXdLlpZU3bTLOPbMhkr77qaBO7wEUtQ47wPQMO6bFdbJ2wf0kNzRX2nS4D 7iywXrow8iuPHWlsKETPGncdxF0EjKz9Jwdww8NDygCa5chIi2MamkT7hTM5dZJl8PMl wWV/lKcul1RGz7tkqfsVyWtD1hWzr2ZD2f8b/lsW3Y1kRnzk331WvsHvN0x7gMvaV/xk qf+HcZXiCOSSB6b0m4YBgsl0UQ4fay97hBjIeFL96lKAQ+2eZrvDijLzyXm+Ny7Q0MTm 053w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="gIN/sXkZ"; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b23-20020a170902d89700b00178b6dfc03fsi1561038plz.40.2022.09.20.21.41.35; Tue, 20 Sep 2022 21:41:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="gIN/sXkZ"; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231191AbiIUDyW (ORCPT + 99 others); Tue, 20 Sep 2022 23:54:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231194AbiIUDyU (ORCPT ); Tue, 20 Sep 2022 23:54:20 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D5151CFDC for ; Tue, 20 Sep 2022 20:54:19 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id E60A021B4B; Wed, 21 Sep 2022 03:54:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1663732457; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=nIbc/7y4eQaQeiEASLP8Mx3nQNV8bI27qmhnLRpUYVw=; b=gIN/sXkZBGKBnUmz5gPol/PonAMZXIi67UGjRYobz+DTg79GTHYSAJHbJ/9GKaO2iPYHwp hzoq1u+X7EPc0zOQ5lrfYAZG9yHE69RRvXqT5HlHJiaDotFOR6YNzcNutR8O0aMB7zHDvC wxKVe/6yyMEOgxuREw1lm/5qE+PvyaQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1663732457; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=nIbc/7y4eQaQeiEASLP8Mx3nQNV8bI27qmhnLRpUYVw=; b=JtK9ronxdDqst8rlqP4WmaHadwdA9EVUyUj8Iuhs8RVwrOW2TInv531qOCeD9y4HlLCdqM UQT/TCIjJdcrE1Aw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 538B91332F; Wed, 21 Sep 2022 03:54:17 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id dfKtEemKKmMDPQAAMHmgww (envelope-from ); Wed, 21 Sep 2022 03:54:17 +0000 Date: Wed, 21 Sep 2022 05:54:15 +0200 From: Oscar Salvador To: Mike Kravetz Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song , Joao Martins , Matthew Wilcox , Michal Hocko , Peter Xu , Miaohe Lin , Vlastimil Babka , Andrew Morton Subject: Re: [PATCH v2] hugetlb: freeze allocated pages before creating hugetlb pages Message-ID: References: <20220916214638.155744-1-mike.kravetz@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 20, 2022 at 10:10:29AM -0700, Mike Kravetz wrote: > Hi Oscar, thanks for taking a look. > > I think you may have missed something in the above comment. For gigantic > pages, we only freeze pages if NOT demote. In the demote case, pages are > already frozen. Yeah. It got me confused that the link you posted (https://lore.kernel.org/linux-mm/20210622021423.154662-3-mike.kravetz@oracle.com/) seemed like an earlier version of what it got into upstream, and in there there was "demotion" handling. Having checked the tree it all looks sound. I will wait for v3. Thanks Mike! -- Oscar Salvador SUSE Labs