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 90DBF2DE6E6 for ; Fri, 3 Apr 2026 12:02:24 +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=1775217744; cv=none; b=AQFYErFdKX6rN+G/97Cl6kdLAPXyKeD/XmcQjWDDUVn+M/diGcxvz8NXWIoPhwHjUZ0i9PgJnNZce5Ih0gguTiRZ4u7y0iwFojzJQGZnV/dxGZbVUy6V9rx1DSoT43xAmI3j78s42xDcDabzBLDwh3/XNNujRTdEi/ZqgdMI978= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775217744; c=relaxed/simple; bh=VmzjbV92+0hYtn6qtVAWC6sPODyuGXfidretO/w7HaA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jf+VN0jcQhQKq+YWjCq/EFbyMEsPD5mJJl26E5hc65MvMODLXUC/VIsTDysjapc5hUsJ0rWP5ZLUm2EQfeMPzWXm42x6trg/Y9Pa3JDy6eUP52/Gmu+KILiL6Y34F6JtnjwGq+381fNaby0W+ZaTJlT3X2MDu7BkoWMPBVs92bw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ul3iLkil; 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="ul3iLkil" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A190C4CEF7; Fri, 3 Apr 2026 12:02:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775217744; bh=VmzjbV92+0hYtn6qtVAWC6sPODyuGXfidretO/w7HaA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ul3iLkilKYa6CqF52Uxgm/E7xbB+YQGSCpMxX3q7K52q4NPOuhWWm9NYssRVlxWA3 vg+RQIN8ItHom+SqyEde78040apH7Y9sKL1xWgKmsSiX3s/hj0btv7wt3Nhf8D9vbg o+C916r6YtFFBTfcptc1A5LDKralPmFD8ELuZfCt5SVJCtLU9+jeqpOLauxT64Gbzn q6PwvKXoEB0pnYHBpTnkNdAPWW2Pl2tsrNyNmtmWkj28GBOGYQol31PBCWYZPceJNW 1lGnouwNf9nuP2KRsV2xw3g4eEG8IIwgE8ynE0w0okPCor55B+KZ7ydgwhM1kT64kR MJLhYnNX+VjDg== Date: Fri, 3 Apr 2026 21:02:22 +0900 From: "Harry Yoo (Oracle)" To: Hao Li Cc: vbabka@kernel.org, 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> 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: <20260403073958.8722-1-hao.li@linux.dev> 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? Thanks! > [1] https://lore.kernel.org/linux-mm/20260330035941.518186-1-hao.li@linux.dev/ -- Cheers, Harry / Hyeonggon