From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-178.mta0.migadu.com (out-178.mta0.migadu.com [91.218.175.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E9B735AC0E for ; Tue, 21 Jul 2026 02:30:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784601049; cv=none; b=XtRJEjO2WcRytL0YkuOdRB6IGnoi7JHNezMzLU9ej7VoUsde6xRICbGFicV48USq6ffFE351BL424D+yRA9wg9Z/yaYpLee5Fpl2Zbo3Rq/xz/pd8Q1DduGcg+9EdtJbfCLy2l2ftkgtfWPG2I0j7hC6fOFfJqFfDeFmy1BoOTw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784601049; c=relaxed/simple; bh=4+keakrlin7gx+pj3U/eBAsfCNxjfQDZPxjcWuJbAa8=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=dR5PrxGQScX9cs/xFexESAmSq2SnLN6qov/2z9lP2HoybIcNfWEPrc43MZgtVoHNWEQrSQ4dkzdDI+WIZoAR63r/UkPVI1q589EvfptpKPn2wtk5O07Jf42ngEUby9PUef7uihkak9ItV/Pe5Nc773otaVedmgAzy2xIBJXUvBw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=MSqSNz4V; arc=none smtp.client-ip=91.218.175.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="MSqSNz4V" Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1784601043; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uqpkdQj+7qvi4skqZqI1ASqK0ghmKIC3He//asuLC98=; b=MSqSNz4Vj3kzhzaJ0O98ooGg/Sc1TB36RgXR0TxbuPJ6aUn9fymZhWXZLcaYL9eggSaW0a G2so9EUVJGkos/7YuUcAJsREUXx4yKSput+DUFM6dNfj2cTaHLqybsCUm8I7RSQfwR0U/D whU7CS0UZLMkd/k+c3MYsM9Awb8A3AA= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.600.51.1.1\)) Subject: Re: [PATCH v3] mm/hugetlb: Fix null nodemask in alloc_fresh_hugetlb_folio X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20260720173707.47616938378bc26a41650b6a@linux-foundation.org> Date: Tue, 21 Jul 2026 10:30:20 +0800 Cc: osalvador@suse.de, david@kernel.org, fvdl@google.com, gthelen@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Vlastimil Babka , Suren Baghdasaryan , Michal Hocko , Brendan Jackman , Johannes Weiner , Zi Yan , Andrew Morton Content-Transfer-Encoding: quoted-printable Message-Id: References: <20260705175119.440599-1-souravpanda@google.com> <20260720173707.47616938378bc26a41650b6a@linux-foundation.org> To: Sourav Panda X-Migadu-Flow: FLOW_OUT > On Jul 21, 2026, at 08:37, Andrew Morton = wrote: >=20 > On Sun, 5 Jul 2026 23:55:31 -0700 Sourav Panda = wrote: >=20 >>> - Option 1: Fix it directly within alloc_gigantic_frozen_folio(). >>> This would centrally cover both of its underlying allocation paths: >>> hugetlb_cma_alloc_frozen_folio() and alloc_contig_frozen_pages(). >>>=20 >>> - Option 2: Fix hugetlb_cma_alloc_frozen_folio() and = alloc_contig_frozen_pages() >>> separately. The rationale here is that since the buddy allocator >>> already handles this case internally, and = alloc_contig_frozen_pages() >>> is also a low-level allocator, it would be better to keep their = behaviors >>> consistent. >>>=20 >>> Both approaches are viable from my perspective. I'm CCing more MM = maintainers >>> and reviewers to gather your insights and decide on the best path = forward. >>>=20 >>> Muchun, >>> Thanks. >>=20 >> Gotcha! Thanks Andrew and Muchun! >>=20 >> I shall wait for the decision and then send the subsequent version :) >=20 > 15 days: no decision shall be forthcoming. >=20 > Please code up whatever you consider best then send it out. This will > trigger a great outpouring of decisions ;) Hi Sourav, Please select Option 2 first, as I'd prefer not to make HugeTLB a = special case again. Thanks.