From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 6BF7110F1 for ; Tue, 21 Jul 2026 00:37:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784594229; cv=none; b=Qs3lw7cxfbzrouz2N3UdboI7Nq9TT9Q35PH36DvueXPZ1aT7+hkteSu87IFkj+1E/sxMujxDyXLNc6FdimtqlpajCXkcX9izw/3Hk82RL2mJrmy6FJOFXrpgjTTbTywOY4Eo5LIIHSsC7BWJevUtRoGNywUV0uj+9iyW9Cnb2kk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784594229; c=relaxed/simple; bh=YLGWvX5JAcE4HJKfZwmIA0KX2YXZz/j2knvcbxjMagI=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=pipdeTzRRh4R93MCFsFlI/PHAYxy08cKnEWf52N9dKkFboj/fK148cA5qE2sq+5BF5QcPDwxMe14rA6mBwox5nv/6Pfxge7ZAr8YcibHqF1BgxwpMRzKkvxeMjKtjC8F3AYLCYwiWnzCRBYFClyUY4adbr6p8FFUx/Cu7Jy5Fsk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=eXP/KIsg; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="eXP/KIsg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93F411F000E9; Tue, 21 Jul 2026 00:37:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1784594228; bh=1C0EuWr3F1b93P4Qgb1emQClLky/+draKUJtiAP9rE8=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=eXP/KIsgTNcGZG0ecWCx3qAESwU7i+fLE7XKgVUEgbSP+W+DC2HhunSfR49qqOWJr V5AexzcVOPYOeQSWnOLP7ca3aWQWqOmqdaGgqnTFOaebIlWZktdtM3dpfGrhHqVbDz 7xFATrfM5HCA7nK5/Bl350jRrMlXP2AdS4mTdMFE= Date: Mon, 20 Jul 2026 17:37:07 -0700 From: Andrew Morton To: Sourav Panda Cc: Muchun Song , 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 Subject: Re: [PATCH v3] mm/hugetlb: Fix null nodemask in alloc_fresh_hugetlb_folio Message-Id: <20260720173707.47616938378bc26a41650b6a@linux-foundation.org> In-Reply-To: References: <20260705175119.440599-1-souravpanda@google.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 5 Jul 2026 23:55:31 -0700 Sourav Panda wrote: > > - 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(). > > > > - 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. > > > > 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. > > > > Muchun, > > Thanks. > > Gotcha! Thanks Andrew and Muchun! > > I shall wait for the decision and then send the subsequent version :) 15 days: no decision shall be forthcoming. Please code up whatever you consider best then send it out. This will trigger a great outpouring of decisions ;)