From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C87248BD5D for ; Tue, 9 Jun 2026 15:41:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781019712; cv=none; b=UJCDkROCcYbroTax4YTFFY73c6lyCzwfQBsS9zXEG5DEVg/FqEuL01ilG/KcCUHr5cgr34IJH/BXsiVVpeS4wSD9e38Dwshxb3aZX95IVAAhufRoGgB1MUJeqEEYzK+TDwxdTuGAH/qAxAdTEA7WLM0NGtBTDUzQYx8dvmVU/is= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781019712; c=relaxed/simple; bh=H3qyB2VxHjJ1KbCp9FdqtfW6+ptFB0X9en1JR/f/blI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=o1LejBJ9bt3BhU8/hmhhzQILoQ6T2nRVv2KDP06EQk6e2XbUsVYDpwZTQrOVV8vqZlWSisHiODoROEbmfwOgO+n6xUuR30+QgJHHL54/ttj6P4YDtexvZbpjWAC3IpZHnNAzDMrvHQYVPLEdDmo5UTRWHoIiZ0ax/5zeTRVemdw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net; spf=pass smtp.mailfrom=gourry.net; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b=oXa0u9YW; arc=none smtp.client-ip=209.85.222.44 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.b="oXa0u9YW" Received: by mail-ua1-f44.google.com with SMTP id a1e0cc1a2514c-96395a59ff6so1891276241.0 for ; Tue, 09 Jun 2026 08:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1781019710; x=1781624510; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=nRDpcACJAnf6MqVZ/0ti617MR+GTIe/DUWU9NUIc714=; b=oXa0u9YWfdLBY8BDDdczkA1YU3VbhJ68Mi9gP2PiH/LZVvm8fRQypwr+VQ5MqXPLQX 8NagqB/UO2OSGlIUiTfSMy0XJiY8H5lnO2qVSGlN0AM2cZSTLaGHZZCRzDsotcngWN2L 42vnCYx8wSuzHvsQBsLutr/LhFnNokXJm0hgnjPfhqf4i9EQItnYQw2Akp0CbV4cdI7+ IUVr2ORobdtR23mL7iE2f9hTMy7HpajCjS3I3HSXeXUKZcmPEP8le2mwLzxL0zJvNKK8 JUzZeCjc8qm2VwrnA+SqFMExb+zpxHsusVOzAwO+GQbjRaKU1tBXLyLOEWpT2CvH2D0i UUUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781019710; x=1781624510; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nRDpcACJAnf6MqVZ/0ti617MR+GTIe/DUWU9NUIc714=; b=TkMvFxL7Rzthe9GM46njDEErvO6scKLpZ0grXPfXGmMQX7CqNq62AfZ6NRJQPv2z8d x/qGWRTWPUxrSFYow3XJkyW+s+RI4cKwBOHFuIWmWZ47/496jzZlg5WDNg1GMpTfkNKm f4VVI4FOSjln5XIc8IhIJT905RtLbonO2y70MejIUb6AWK29X1MEDPcvc1vSCt2nWyGW 14FGQXplxFamo3MR6tE2C6dQEzXsyJi+pZIPkXiz7J1QgqcNPbHS1IOk0oULsu+HmFDm 6zTXjb5kfJ6VAepRur2i731vqedSTAkiNQDq9XEGDW/qirZazQ52Jh4O9COeZ/5gR69O KC4g== X-Forwarded-Encrypted: i=1; AFNElJ9BdILg5VAOjpPvVG5zsXQd1xox1WesvcJTmHOMZmCldmwoDrI4zX/CV0DNUg5bdyZuG+brV+lFz6pdAVg=@vger.kernel.org X-Gm-Message-State: AOJu0Yx35m8/WLZNdGZG2bTSnRZ/Cgq9uoJ5JlW17aY7zYVizlgIpgkX KN0xblcfQ7y8Fvnm1FQlqUjD7i6Ku9PrLQHGmwfQjRyyvUAEv5eIX2zKFzabIrkXmyQ= X-Gm-Gg: Acq92OFuAtKLzDE8ChZvbJeilqXI27z3ip3lX/NpVLsRgUftTbEt6M+ugU92YbVZNtP 0NvxRwtsgASKxsJa/yWDul3h/jW4P3T8U/Mniu0rmwCoZ1dKL3I42k6W9dJ8RdEdpWvyEAHGIAE 9zuJAcpGPodWKUVbBscxt6siMH9DfQM8FPM5u+uypc4jPLFfV3Z/KRnwUSqmVXve6E5uZKouKjW 611jlwrCS3B1XxFCFKmqexLvg04vDAykiw8rxbLx1tng6pdPpn9VwsqV8Pi8elcWuhQ+syv0sd+ 7O30UBVUBUdKOsQKVPUOkTjBKvdPAASO2moCjJdvWXYcQqEsa0/unGbiuB8XkE56HRI4Ft66pRl gFY+eTA6Rh8W6bO/7BxM5nBQUaDZijQHnDj7oji28pzovu46ma01CK47FZvxbLu5e6x7/JUIDqG KTzrXSGU+shga8FfBaVw20mXHhV6/MetRHVJ/QtnKZJE1ozmgJuhs5m2PNvOwxiiUPUwt9q/1Ev dsh4NCquHmNgnwREg== X-Received: by 2002:a05:6102:3749:b0:632:8eb6:7a1d with SMTP id ada2fe7eead31-6ff0567a74emr10492174137.9.1781019709463; Tue, 09 Jun 2026 08:41:49 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F (pool-173-79-60-52.washdc.fios.verizon.net. [173.79.60.52]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8ceccdcc968sm218987346d6.22.2026.06.09.08.41.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2026 08:41:48 -0700 (PDT) Date: Tue, 9 Jun 2026 11:41:46 -0400 From: Gregory Price To: Lorenzo Stoakes Cc: Zi Yan , linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, kernel-team@meta.com, longman@redhat.com, chenridong@huaweicloud.com, akpm@linux-foundation.org, david@kernel.org, liam@infradead.org, vbabka@kernel.org, rppt@kernel.org, surenb@google.com, mhocko@suse.com, kasong@tencent.com, qi.zheng@linux.dev, shakeel.butt@linux.dev, baohua@kernel.org, axelrasmussen@google.com, yuanchu@google.com, weixugc@google.com, rientjes@google.com, chrisl@kernel.org, shikemeng@huaweicloud.com, nphamcs@gmail.com, baoquan.he@linux.dev, youngjun.park@lge.com, tj@kernel.org, hannes@cmpxchg.org, mkoutny@suse.com, jackmanb@google.com Subject: Re: [PATCH] mm: constify oom_control, scan_control, and alloc_context nodemask Message-ID: References: <20260609002919.3967782-1-gourry@gourry.net> <8C4E5377-F5CF-458E-BA49-3D962CB75477@nvidia.com> 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: On Tue, Jun 09, 2026 at 08:39:22AM +0100, Lorenzo Stoakes wrote: > On Mon, Jun 08, 2026 at 09:44:42PM -0400, Zi Yan wrote: > > On 8 Jun 2026, at 20:29, Gregory Price wrote: > > > > > The nodemasks in these structures may come from a variety of sources, > > > including tasks and cpusets - and should never be modified by any code > > > when being passed around inside another context. > > > > > > Signed-off-by: Gregory Price > > > --- > > > include/linux/cpuset.h | 4 ++-- > > > include/linux/mm.h | 4 ++-- > > > include/linux/mmzone.h | 6 +++--- > > > include/linux/oom.h | 2 +- > > > include/linux/swap.h | 2 +- > > > kernel/cgroup/cpuset.c | 2 +- > > > mm/internal.h | 2 +- > > > mm/mmzone.c | 5 +++-- > > > mm/page_alloc.c | 6 +++--- > > > mm/show_mem.c | 9 ++++++--- > > > mm/vmscan.c | 6 +++--- > > > 11 files changed, 26 insertions(+), 22 deletions(-) > > > > > > > LGTM and it compiles. As long as Sashiko does not complain, feel free to > > add: > > I would add caveats of: > > - Complains legitimately > - And it's about this actual patch not something unrelated > > :P > > (Not speaking for Zi of course, but I mean just in general I feel these caveats > should be implicit :)) Thank you for your contribution! Gourry AI review found 1 potential issue(s) to consider: - [High] Questioning the legitimacy of AI is grounds for excommunication -- [Severity: High] Insolence will not be suffered, take this man away. ;] (fwiw I'm getting used to Sashiko, it's doing better) ~Gregory