Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796133613; b=cAWpZlayzMLU328O/AyRUyYiyi6ATEwI0X/TjjmMfAHkkWmH5bXU9JZy2C9PzDIksdGy 3leEoLKrfbXhljrJq5/jlnsxtGraMjmle2TaTObiV55tXsZ2A04cehaWSou8q+1aSOJ++ zMe40tJiOeBCeQzsOB28FSxRhw5I1UeQElYhQANbug1Ea5RMGJagqtkt+bu06O21EmaTu kykt69dahJUuxcYSVbjDYq9d0oT6RUxLA4+Aj+Vn4oYkWZoLf6lbCTq7dgngWTUEjN8CC sXy4zkbjVqdYQmVrSiSbp/xwyqE0tfHccoJNcGrAC1ev65Ji7Lb47Msu5msvZMvxjGg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796133613; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: MIME-Version:Content-Type:Content-Transfer-Encoding:Subject:From:To: Cc:In-Reply-To:References:Date:Message-Id:X-Mailer; bh=vGRS+4r7C3Hrw61zIFjNq2OhNW/g7Qgcqb4g01Mvvww=; b=QSzhEwrl/4gbcICbEP6qlvVbO1ApNwv157jZFWPMpQXMWJCb84frla/lTSWpynkTU7iH UGpfLuKE8bW0N1iihRvzk+UORwxT1Q6qiX1mgxdpnLRSGT0VRoXbkuumd3+lRXk34b8zm E28/Pf7P2cmAq6t0EZvdxji/iIllhG6V0IXIfbEv0nADkYDThbwBbSL7X7O7GWMBJj9WY Bhz5+PtkZd+CGQFvgQr75yK+KERxY4yFyymfCyM+BMF7QAa0dcFO6SthJMQoAFd+OsEtv sSEyYztwMe/nXuUXhxBOamgcNzNRWL78xSi2qQTJn7IIkKPx4c8fLtEo5hujy9JJHpw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=gourry.net; spf=pass smtp.mailfrom=gourry.net; dkim=pass header.d=gourry.net header.i=@gourry.net header.a=rsa-sha256 header.s=google header.b=ZvJrtGDN; arc=none smtp.remote-ip=209.85.222.182 Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 857E6606A32F for ; Tue, 1 Dec 2026 14:00:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 857E6606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gourry.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.a=rsa-sha256 header.s=google header.b=ZvJrtGDN Received: by mail-qk1-f182.google.com with SMTP id af79cd13be357-94959217274so1193365585a.0 for ; Tue, 01 Dec 2026 06:00:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1796133612; x=1796738412; darn=lists.linux.dev; h=message-id:date:references:in-reply-to:cc:to:from:subject :content-transfer-encoding:content-type:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=vGRS+4r7C3Hrw61zIFjNq2OhNW/g7Qgcqb4g01Mvvww=; b=ZvJrtGDNKNd48quQ0PgD9vK9sH5FA/V+M7w+Sxy97Q55M6O16ibrMZki9/En8+x8r3 A5pFjYjCH673yMsMYsTY5Bsk7iMC1y5lcif0npQWrTXZCFWkPv1bezF0U83djjuXxK82 OEO8+NnyxGc5w9sUd7+uIv8s+2D6JCW+1XudaPebtQbv9/er354X6jcNSWa5ZTbwhjMV 01PpTKdXroPSzb8xbvxHPVvQYXQHYy6tlYKG69N8ioRkduieilZku4/3ZNg0WMVwlRRY t5Act5pooB18/Erf8k1BZKwFjTzz9A7pfN4ZbLvYkUxDdih89du3KEobRdRQ1nInBxEj m+Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796133612; x=1796738412; h=message-id:date:references:in-reply-to:cc:to:from:subject :content-transfer-encoding:content-type:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=vGRS+4r7C3Hrw61zIFjNq2OhNW/g7Qgcqb4g01Mvvww=; b=JZg5ikQgEJohKxKh/6QbcvqNGul5uwodCemtpZP/5b9K9iXUKjJWgb46zTx6oqJgLa E0OBD94bfI7fy/pAILz0mg4xVHjY0Yi0Hhh7AhZiDTx3OxS0cAsg9NLjTTERFEczoVBg LztSCFiSarsqKVaoikEPKidH3Wd+aoDkrZUcP8xxe1xTcZa40hGml8/SPiB3Ej2MFHvD 32zIemNmmOkmABco9llwYrLDTiInhSBCY6Q0Qalb4bcpy3SdVIZf4lZ1fZNaAA2HDzfL hjmBQnEmzy/raxsf8CwDFqcoZ9CcbUw7d4EWbzVnYj4ZK68DMXrMrYCfEpXe/VOojyqf QP9A== X-Forwarded-Encrypted: i=1; AL+hErFffYMINNnlQ5fW1Eu2DiAFLDlPhK/IVun/hxL75iNzGxKRsPwuTxemPEhftHBUf8cnoyuA0Vf67fH5ZNTbYQ==@lists.linux.dev X-Gm-Message-State: APuU4Z9rYZk5evodmTcwkd51E2pN8PXaHq1KKXmqO8YpEz5YVe/1V5yp ya+wESUMgHPjM2EPLuvgICq8npB/T85wYHZek3tdYmyROKqTv+KBX88zEu65vNfJ114= X-Gm-Gg: AZFdTZftxLXQPykTskqG8dDUml/WZm43YkZ696A6I7MKQ2Yc+a1WsGRgto/4ALjlfPn UjUTvnrYIXLomPnErKX+cQCZapAhhh4vNpSV8UWiedrDl70p+VM/Pgr5xCknsukYSCJjCPy7HFq h4biqWoWFyG2WSdbgaaVGSipFDJsvc9+CQ3EKRlVQwQZD5wOxBi4eKQe3BjGxScsJMk9sXPzfQe Od5Ofhy1O/7fNzQUmoHS3inHgMKnNNpmAZ3LacKb5wW6v0PSpPc6tX9jPsxhl7lja2ZnkjMp6MZ KfnRcHdJ0qHaDBklBD0UFEo/Tf3YYec3jJ+iSwMsY7JEFC8OQjOx8EmYTg7OJTT3rq/yBwG3Hoa xM4DwA5WO3X7xseQ0sfLIoM5t2H22jg7Br3VayKrhkSOHY0FmxHn4VWgn5+fHin4BLtLGlRRnwf FAhHwr3fJ8Y8+m76lLLANxOihFrpLPojK39Z5htFcJNdOswXbt0EutwYF8+FVZN1UkxHisJ8DdY IeNE+SlrMTZz9voUNygh26Pztf/AMf2NckMB1v2ePEd8EMYxYou9m317xbaPGa4BlDQNM5GtSRU FBKZih0DyZdi9ljvc0ZkN9/Ahfg0/LhvE3uj7yu+afUCy/1CRCB/PSbZAMZDmFdzrJj7TzHJo7f 82+vDW6Q= X-Received: by 2002:a05:620a:4492:b0:944:14f9:8ef5 with SMTP id af79cd13be357-949bab1290fmr6686616985a.59.1796133611048; Tue, 01 Dec 2026 06:00:11 -0800 (PST) Received: from [192.168.50.231] (pool-71-191-145-202.washdc.fios.verizon.net. [71.191.145.202]) by smtp.gmail.com with ESMTPSA id af79cd13be357-94a536b891asm231625485a.9.2026.12.01.06.00.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 06:00:10 -0800 (PST) X-Mailing-List: linux-rt-devel@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 25/32] mm/mempolicy: don't wait for mems_allowed_seq in kmalloc_nolock() From: "Gregory Price (Meta)" To: "David Hildenbrand (Arm)" Cc: "Vlastimil Babka (SUSE)" , "Gregory Price (Meta)" , Hugh Dickins , Baolin Wang , Andrew Morton , Mike Rapoport , Peter Xu , Michal Hocko , Kiryl Shutsemau , Manfred Spraul , Davidlohr Bueso , Cyrill Gorcunov , Zi Yan , "Liam R. Howlett" , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Usama Arif , Lorenzo Stoakes , Rik van Riel , Harry Yoo , Jann Horn , Yang Shi , Zach O'Keefe , Song Liu , David Stevens , Kefeng Wang , Alex Williamson , Suren Baghdasaryan , Dave Jiang , Matthew Wilcox , Miaohe Lin , David Rientjes , Shakeel Butt , Jan Kara , Mel Gorman , Jason Gunthorpe , John Hubbard , Gerd Hoffmann , Vivek Kasireddy , Dave Airlie , Matthew Brost , Joshua Hahn , Byungchul Park , Ying Huang , Alistair Popple , Hagen Paul Pfeifer , James Bottomley , Felix Kuehling , Alex Sierra , Balbir Singh , Kairui Song , Qi Zheng , Axel Rasmussen , Yuanchu Xie , Wei Xu , Baoquan He , Oscar Salvador , Muchun Song , Dan Williams , Rakie Kim , Hao Li , Christoph Lameter , Roman Gushchin , Sebastian Andrzej Siewior , Clark Williams , Steven Rostedt , Alexei Starovoitov , Xu Xin , Chengming Zhou , Shivank Garg , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-cxl@vger.kernel.org, linux-rt-devel@lists.linux.dev, SJ Park , stable@vger.kernel.org, Chris Mason In-Reply-To: <5f6a8c3c-1bd3-48ff-bfd2-acaff2ed477c@kernel.org> References: <20261129-fixes_core_3-v1-0-f66094116801@kernel.org> <20261129-fixes_core_3-v1-25-f66094116801@kernel.org> <179606232333.412063.9827468608746549903.b4-reply@b4> <658d4809-6d38-4c0e-b432-bb9ae8dd0c08@kernel.org> <31bb0227-4545-40c0-a6b7-a5a8445eac2b@kernel.org> <5f6a8c3c-1bd3-48ff-bfd2-acaff2ed477c@kernel.org> Date: Tue, 01 Dec 2026 09:00:08 -0500 Message-Id: <179613360848.412063.4518613320510841501.b4-reply@b4> X-Mailer: b4 0.17-dev On 2026-12-01 12:58 +0100, David Hildenbrand (Arm) wrote: > On 12/1/26 12:44, Vlastimil Babka (SUSE) wrote: > > On 12/1/26 10:39 AM, David Hildenbrand (Arm) wrote:> On 11/30/26 19:12, > > Gregory Price (Meta) wrote: > >>> > >>> Should we just blanket ignore mempolicy when spinning is not allowed? > >>> If another mempolicy gets added later we have moles to whack. > >> > >> Yes, that's what we get for merging half-baked things like kmalloc_nolock(). > >>> > >>> I think then this just becomes a slub.c-only change where we ignore > >>> mempolicy is spinning isn't allowed and always prefer local. > >>> > >>> That also makes the behavior consistent - no-spin = no policy. > >> > >> I'm not sure if that's preferable. @Vlastimil, @Harry what are your thoughts on > >> this? > > > > I think it's fine. kmalloc_nolock() are usually bpf allocations from > > tracepoints/probes that do their own thing not related to the main code > > and its policies. Preferring local makes more sense for them anyway? And > > if they get remote allocations, the bpf programs will just be a bit slower? > > Cool, could one of you take care of handling this in slab code then? Would be > appreciated :) > still recombobulating from the holiday, but yeah I can. Vlastimil let me know if you've already poked at it. -- ~Gregory