From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gentwo.org (gentwo.org [62.72.0.81]) (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 497F81D4164 for ; Mon, 7 Oct 2024 16:30:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.72.0.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728318624; cv=none; b=VWMUZJJf9aXYVnkQ7KnuwdTsx2/g4SAHvTFpfufvkiLh3ZGEBmMOr1cRgsOxKnkGryO5TJtSBta4gFd3w6rRb5P4Xl+bnU6iB3b/aeXS0unNP3tA9kMfjtwwaf+ewnPdymsL98ejYUpCvaUlB9plUAqChN8mTL4bf62EnVMSyYA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728318624; c=relaxed/simple; bh=Egyp1ASo/oii9pJ2DkFESs3h3UAA6SZYA/as0HXCYjo=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=H0jgl0bgZ2xYsoCBUog0gu8rROBWKeACfdgI2p+l00JmXtgLT8rt6wwbMlVxrINkR3GU+FhltXDaL43hAaGXcGp1vXobE2690EsX0m08EeZPGvqnS2oBfle0OfNp3x2Hyp2B8pEMOKwr6vlxKSCcVlxp94J32zYy9+5pNKla0LE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=gentwo.org; spf=pass smtp.mailfrom=gentwo.org; dkim=pass (1024-bit key) header.d=gentwo.org header.i=@gentwo.org header.b=QAb3mxCe; arc=none smtp.client-ip=62.72.0.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=gentwo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentwo.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=gentwo.org header.i=@gentwo.org header.b="QAb3mxCe" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gentwo.org; s=default; t=1728317958; bh=Egyp1ASo/oii9pJ2DkFESs3h3UAA6SZYA/as0HXCYjo=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=QAb3mxCe91iQ2aCSMn1fNskGErTgUM4RDxmdl7YUcHBIjN3j8WQpMUH376PbaoqD4 OmfZgizlw+QctYHa7ezORy0bVb2a0SA2XZjDw5Lqhw9VRVQt8WnIWpt8T8X4AMjaj0 iuvjNZV5B8iSOovLdvL3l5l7VAawHgmDtte3yyxo= Received: by gentwo.org (Postfix, from userid 1003) id 99E6B4026D; Mon, 7 Oct 2024 09:19:18 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 9897740264; Mon, 7 Oct 2024 09:19:18 -0700 (PDT) Date: Mon, 7 Oct 2024 09:19:18 -0700 (PDT) From: "Christoph Lameter (Ampere)" To: Hyeonggon Yoo <42.hyeyoo@gmail.com> cc: Vlastimil Babka , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Roman Gushchin , Yang Shi , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Huang Shijie Subject: Re: [PATCH v3] SLUB: Add support for per object memory policies In-Reply-To: Message-ID: References: <20241001-strict_numa-v3-1-ee31405056ee@gentwo.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 On Sun, 6 Oct 2024, Hyeonggon Yoo wrote: > > + */ > > + if (mpol->mode != MPOL_BIND || !slab || > > + !node_isset(slab_nid(slab), mpol->nodes)) > > + > > + node = mempolicy_slab_node(); > > + } > > Is it intentional to allow the local node only (via > mempolicy_slab_node()) in interrupt contexts? Yes that is the general approach since the task context is generally not valid for the interrupt which is usually from a device that is not task specific.