From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f42.google.com (mail-qv1-f42.google.com [209.85.219.42]) (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 9C61F32939C for ; Tue, 16 Jun 2026 13:44:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781617498; cv=none; b=Np/uN2udOGpWXr6KXUzoHNffg730vwmZQSAhFHRfbLG3BVWI4X457oyof4znaX2tA3Zxm/LqCUM+qbR8WPPGJvtVpd5G8wMiFdZn4Qab3uguNcQ7UOJbv2Y3E4SgDIwTGWlhfFFcBYU3t+xrvl20vFtpcT//r7DSHB5UP9VtoNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781617498; c=relaxed/simple; bh=2FuiWMyjXh68tYMurmD9NRNYivd+DBtBW0Gd/vXz02s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bqceBgkDL5n70XHp3ens9i8zFdAg9wCDHyVlkMYsdv+A1iGFkK8zTQKNSyhq3iR4SF3HSGkTZHba9lWtuP1soOsgtNI1QW3gnphlo4+TE4/2IgOdg0urJAVisYFYV5o0EqKp2+K39PZc/qK1FB39geDcNevQfHkC/jeV5eScvSM= 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=a3a5F13U; arc=none smtp.client-ip=209.85.219.42 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="a3a5F13U" Received: by mail-qv1-f42.google.com with SMTP id 6a1803df08f44-8ce9e56f68cso38290196d6.2 for ; Tue, 16 Jun 2026 06:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1781617496; x=1782222296; 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=2FuiWMyjXh68tYMurmD9NRNYivd+DBtBW0Gd/vXz02s=; b=a3a5F13U7QwjSojqxK6WJWsr4KMcn/68BL5eZED9kbZd8ouwwg8XXmV8kHQjnOkO2e 1P1v+UqqXmwqJZ8mmp59WDtd3vgQ8+zEZqM8z/ST8jyv1FWh5a3XIfa9fEA9v95WB+QQ kgx4YRhm5ahRvbo0m3umIfLtC3WvYkLN+L1dMCDxqLtXNVqmjyZG9Ej2goFxVDGHHgov 0L/rLIKobc+QB6TlUal3/sB9G2TnlKQNQ4JcT3d/Y68zviH8uSQpCgfum3oj1Bacp/71 +jnxAJPKVsw2UZLQS8rIL77dY37VR0nkVrDPZDxf/ddEDgnnoePsAq2MMWc07WHXDf98 ZWAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781617496; x=1782222296; 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=2FuiWMyjXh68tYMurmD9NRNYivd+DBtBW0Gd/vXz02s=; b=l939fk0aT+cKruijSPuU2NhIL8Ld/hkstuxgC84cOnd2PFurVFdz+WaYcJqghDjcqU cOvZf0DOJU9/dLKUzzT1bhzKojUDxnJDBX5Qma6hobCSYgSiKsdQisIbdrIp0NOH5neD R6TVaUj3yQal6Xjh6AYWByVLixOZBqPdX4GBkyzOYTce4foR2p+DuqsIk/g+ko5y2GG7 q2+d0EKTbOIQHGjgVVAvwOcgajXPNHSM3TuVwYU8CQAgzkDNhzkIo5egLwotm8uDwdEz i6zpZPGzRL+zTekbt1mt3Uq4DWDlMeJn3znGw5LTThd2Dx2Xy3ArU8TBFpkLt7Maxyfw PTlA== X-Forwarded-Encrypted: i=1; AFNElJ87bhhbsXXiJItTOhJt0wo727qjukFqF22tyRj/hXhYuLtCk/9OF/0v3k1Cdgkysewqh0Yzim5isu/Bkjs=@vger.kernel.org X-Gm-Message-State: AOJu0YyxnOU8BzkGRKg+tiv3HpXhxcRX4JLnk4kYtZ0+9G3hqVB5sr0B KACo4wHneKdS161QPDobP/FjkeXwIrJ4GWjphpVnifqVEAW7yy/vSc/lL4uTyaCUbnE= X-Gm-Gg: Acq92OGioy10luvtzsMsBX9y2fOhcgp3vQKk6BcAuBd9q4+LcOi8aBJFIbNQHQBBzWG +x2FkisNmvUBFFQm5SgGMt1WYVGuYEG+vJjiuPMoiRDNf58ER74WFvqoYY8OL8v9x6AuZRQIsjC sq4x1wwfqKiwZSsduAUGEgNlj4OG5sFS8uYLnmAr5gbxZTgSe8Sy2h8nsErTAdsywB7MMhf16nk E/3KwGHH33bYMJRvgf9K2bhzwZE3R8EFSmPPhYTwx0/d33S6A7D3Jf+xsZVSs/6NGM7C7zpy27Z eYXAunDiQlKhTdyHiiZMmE9E17HOEE6McHHKmcXUmPdWFnOMCRvNIiUFIgRLd8eV7XDXfy3R4Pj HFxgjASd0kgNZasnDeKFu1HMVRy79nMPLtQhtCv6ZQV0j47tGpp/StwT7Iwph4+/bFrWVkkkCsD VlWVrDUpGkqcYLl8iREBr9 X-Received: by 2002:ad4:5d6f:0:b0:8cb:e63e:2a45 with SMTP id 6a1803df08f44-8da1f0168f7mr50299196d6.18.1781617496409; Tue, 16 Jun 2026 06:44:56 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F ([2620:10d:c091:500::3:437e]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8d9f4ff2206sm32423616d6.37.2026.06.16.06.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jun 2026 06:44:55 -0700 (PDT) Date: Tue, 16 Jun 2026 09:44:53 -0400 From: Gregory Price To: "David Hildenbrand (Arm)" Cc: Waiman Long , Farhad Alemi , Andrew Morton , Farhad Alemi , Yury Norov , Joshua Hahn , Zi Yan , Matthew Brost , Rakie Kim , Byungchul Park , Ying Huang , Alistair Popple , Rasmus Villemoes , linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2] cgroup/cpuset: rebind mm mempolicy to effective_mems, not mems_allowed Message-ID: References: <8d3b4561-92cd-4ebc-8462-5fb0fd659e8a@kernel.org> <70f486ce-5ef6-4d72-8cc3-7086f4eea930@redhat.com> <51eafe6c-6622-479b-b391-6d3ff9350e75@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: <51eafe6c-6622-479b-b391-6d3ff9350e75@kernel.org> On Tue, Jun 16, 2026 at 08:59:07AM +0200, David Hildenbrand (Arm) wrote: > On 6/16/26 05:43, Waiman Long wrote: > > On 6/15/26 10:26 PM, Waiman Long wrote: > >> > >> > >> The reason why I am suggesting to use cs->effective_mems to keep the old > >> cgroup v1 behavior. If the consensus is to use the output of > >> guarantee_online_mems() for mpol_rebind_mm(), I will not be against that but > >> it will be a slight change in user-visible behavior. I'm not grok'ing what is user-visible here. The two values should effectively be equivalent because we're using this value to constrain mpol's during a hotplug event. If the values differed, you would be saying there's a race condition that could affect correctness of the rebind (which can't happen, because this whole thing is done under the hotplug lock btw). Can you help me understand? ~Gregory