From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0877B156C6A for ; Mon, 6 Apr 2026 01:57:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775440645; cv=none; b=txv708YlxQCn4eDVSN4ld27cS0fcxKCJIgM/csSmDYW53+hiC3PnWvTWczE33DjknQfn8NydGgP8/i3qqToWT85D+3feuxWUdsc50ebDKUrA0ml1rqwyZ7M1mkRPJFX1mdVoYtkvsQWkCrPdbeldTjCQPZcOAqiQ5kIOktrJBqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775440645; c=relaxed/simple; bh=nN6LiSaJDmaX3AIKdlv3OdZUJN6OsquxMb79cgLmeAs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KGFSmuYnOrc5IQP3Xil5EtH7Pm3lhkS0Lf8fT7HU1xOZfGGmFS8B0RHtSD+Tkv4jFhIXm7d0rkPf0m2yWTFNMP0wTmNMM6XTTCdPUNzTnKGnuFg3nLZhlHGNk3BEPLeMPt95YEC4C2KrzrUBSnvOZIqycXRaC9fKwP24ff0P6ps= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TGqJbu8J; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TGqJbu8J" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77631C116C6; Mon, 6 Apr 2026 01:57:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775440644; bh=nN6LiSaJDmaX3AIKdlv3OdZUJN6OsquxMb79cgLmeAs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TGqJbu8JaC83GOpFcRjTbZBckqldmJUEeDBTvTjZMrJwxZ5ShUt7YTqs1tMSbx57a L5RikvhG0u+Kt0lWYH8bq92WFwEXvmZOEfGCf8VeEY6CKy/+33d3AqUV4112PaN6Zo zQXk5XgNWLVKlYHik86SCasM9J53RcfXUxee2LIJ3bmWnSzA0bWCruicJTIQQRAJsM jlAA86i6mbIKsm+C4csw08zDqeRcO0bLpqJRYtjhhhYdAaa/f6cVLnZfGc9HbQtJ2A Ug8sq5cUX4dd8FFqILYTbUesmQbI0KMzLr+qpZMpuzIcN8VVj+rD668YEwS/LtmkAO UR2Ry4GwIvZDQ== Date: Mon, 6 Apr 2026 10:57:23 +0900 From: "Harry Yoo (Oracle)" To: "Vlastimil Babka (SUSE)" Cc: Hao Li , akpm@linux-foundation.org, cl@gentwo.org, rientjes@google.com, roman.gushchin@linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] slub: use N_NORMAL_MEMORY in can_free_to_pcs to handle remote frees Message-ID: References: <20260403073958.8722-1-hao.li@linux.dev> <6c90c152-3341-4a46-bffa-3cfaca66fdd1@kernel.org> 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-Disposition: inline In-Reply-To: <6c90c152-3341-4a46-bffa-3cfaca66fdd1@kernel.org> On Fri, Apr 03, 2026 at 08:14:11PM +0200, Vlastimil Babka (SUSE) wrote: > On 4/3/26 14:02, Harry Yoo (Oracle) wrote: > > On Fri, Apr 03, 2026 at 03:37:36PM +0800, Hao Li wrote: > >> Memory hotplug now keeps N_NORMAL_MEMORY up to date correctly, so make > >> can_free_to_pcs() use it. > >> > >> As a result, when freeing objects on memoryless nodes, or on nodes that > >> have memory but only in ZONE_MOVABLE, the objects can be freed to the > >> sheaf instead of going through the slow path. > >> > >> Signed-off-by: Hao Li > >> --- > > > > Acked-by: Harry Yoo (Oracle) > > > >> Hi Vlastimil, this patch depends on a prerequisite patch[1] from a few days > >> ago. I'm not sure how this should be handled. > > > >> I wonder if Andrew might put them in the same tree. > > > But it also depends on the patch series > > "[PATCH 0/3] slab: support memoryless nodes with sheaves". > > > > So perhaps better send it to Linus after 7.1-rc1? > > [1] is in mm-hotfixes so it should get to mainline before 7.0 final, Right. > so then it's fine to add this to slab updates PR for 7.1-rc1 Sounds great! > >> [1] https://lore.kernel.org/linux-mm/20260330035941.518186-1-hao.li@linux.dev/ > > -- Cheers, Harry / Hyeonggon