Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2269139pja; Thu, 26 Mar 2020 12:21:33 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvN0Rqxz1zsjePNDo8Yg0VHG9I/IdZk/nH1yIxKSPwl7yZK3iZ9QKNnQcRmYVPSTJy8w1FY X-Received: by 2002:a05:6830:19ce:: with SMTP id p14mr7384470otp.362.1585250492861; Thu, 26 Mar 2020 12:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585250492; cv=none; d=google.com; s=arc-20160816; b=c7Sb2gGe8IM73oZLZxIG5gBC6FnlbpT3XtqSO5Nz1oWO50+Dm1nkVXFtoEHo38seGL 7Gs2oKsqEMC1ZACelLjVNzyzbE82mRQCYM68Y1TN0l2ZTJFRk/MS+1p377gSBNuwwm3l mKNVTSMrICQbPfeRN0ekZF9vlYNmf1cGjM9SJB3VepEYf/6JFo2/V3SHRImosUfo+CC3 k3XG9TEBYrmg1y4oF2dbQc9d5m64D/8GECgPK9oAawLnzM3oOkXAt017gzWK3XH+P++0 P35ipte3nzkQ3djIgRSCizqJtzcxl9verN4xUh4i4h5eVSFaIcVyhSaYOdkg2gOf+cBq JFjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=BshxP40VVzwMKYJQVOlxQ7cvaL9xzYOkqdrLAsauMpo=; b=LJvtckIlqhWblJNCBAPoW66pl0bS6gjqKlLaIPmcj1kUqIIhKgppyp3EWNB7CQM/2r qRrNG5/nWhQy9xh3pWg7y85o4A/nEA1/sE8K9AeLcMrljPZ5eyaZ+gaMyhjh/8NAUQSf 2c537fSZy3kIPo0h4ImEVIzceMJx5chlXU++4xSPgMBGLvMI3nymS4NEp0Atc84Z4nTp ZWdYosA6CzmnFzgOuRpZVQYdLV7A0B3k10oFhJV6PtR2c2Bex4DUoIYZRyuJXRPhqvO1 2KeXNpGlwzbsQnS28UMOSypQ+1Ip1MTK+d0dLom/BfUQzcrUimgONa35NO/0WgsRvBly Osbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="c20H/cNu"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u21si1366618oiv.267.2020.03.26.12.21.19; Thu, 26 Mar 2020 12:21:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="c20H/cNu"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728317AbgCZTUl (ORCPT + 99 others); Thu, 26 Mar 2020 15:20:41 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:47082 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbgCZTUk (ORCPT ); Thu, 26 Mar 2020 15:20:40 -0400 Received: by mail-qk1-f194.google.com with SMTP id u4so8049721qkj.13; Thu, 26 Mar 2020 12:20:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=BshxP40VVzwMKYJQVOlxQ7cvaL9xzYOkqdrLAsauMpo=; b=c20H/cNu1p8GBlF+mPsYbUh0rXL1H1AWe/ycm2VlcgEK65RBZQUQlnCR/ZCQQsD1K1 +Eew8NDPAtsfuRrpiipXtIJx7olzpXEAHnH8S2hPh8lobGAMro4Qdjqd/LMLw/Ote73l SwhEfIIRGs6JQOEYNVnK3CsC7lNZ2gM/RM9o3qDLuATA7GcnGnxS5L5kopZxYXw1HJt6 8gC5IhTabVdSWE6IGVSn9jzjguGE1t62zXlN3zPGs1TY2gMDyiLuiWT9/GYedbHZGDqB TZCSr3w0/jJpxXKukQ9LUz5TucI9EYGjvlrwGWAvs5teC779vvVK8kCKIoj4u2JHd9tY sUAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=BshxP40VVzwMKYJQVOlxQ7cvaL9xzYOkqdrLAsauMpo=; b=JslQ4PTCwHe8Yw9wYpRUW5H/31Aa9poSt0SPjbof6nRld8GgK1KLTpqNcuDpioUPq0 Hk7RFzXJ8QkNi5Abgm5sgfiZSSnZmdhrgVNEJNB4cgFKhpFez0PX/d5gwDMOHxRjoAqn G3eEC9ql6wsVizpK1VcgJKGmA+FlQmGmytSYuo4NJMlSRbM/8jjIr9LBLqYVfhh9vTWJ WOfSRk6FGpf8p1nzOks64QmdRaJkA1IO8xqaY7419WeAohoeYmMoSlH8wk/gpsoZKGsA g52DWqb/I2yZ1nxgC+R2bHxYAnv0/1SUxptzkJ9NHl/jQT3lV2wAzAC5eQrpwSMsutUT bFeQ== X-Gm-Message-State: ANhLgQ2Q+cgGN3CbPU1euneaCco+s/jITAxGQSlCDyfqlh1mnX2VaATA PNoKw1pFM6co1wWWUqljlyA= X-Received: by 2002:a37:a50d:: with SMTP id o13mr9754025qke.37.1585250438033; Thu, 26 Mar 2020 12:20:38 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::d3b8]) by smtp.gmail.com with ESMTPSA id i4sm1234609qkh.27.2020.03.26.12.20.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 12:20:37 -0700 (PDT) Date: Thu, 26 Mar 2020 15:20:35 -0400 From: Tejun Heo To: "Joel Fernandes (Google)" Cc: linux-kernel@vger.kernel.org, Dmitry Shmidt , Amit Pundir , kernel-team@android.com, jsbarnes@google.com, sonnyrao@google.com, vpillai@digitalocean.com, peterz@infradead.org, Guenter Roeck , Waiman Long , Greg Kerr , cgroups@vger.kernel.org, Johannes Weiner , Li Zefan Subject: Re: [PATCH RFC] cpuset: Make cpusets get restored on hotplug Message-ID: <20200326192035.GO162390@mtj.duckdns.org> References: <20200326191623.129285-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200326191623.129285-1-joel@joelfernandes.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 26, 2020 at 03:16:23PM -0400, Joel Fernandes (Google) wrote: > This deliberately changes the behavior of the per-cpuset > cpus file to not be effected by hotplug. When a cpu is offlined, > it will be removed from the cpuset/cpus file. When a cpu is onlined, > if the cpuset originally requested that that cpu was part of the cpuset, > that cpu will be restored to the cpuset. The cpus files still > have to be hierachical, but the ranges no longer have to be out of > the currently online cpus, just the physically present cpus. This is already the behavior on cgroup2 and I don't think we want to introduce this big a behavior change to cgroup1 cpuset at this point. Thanks. -- tejun