Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1665252pxb; Fri, 27 Aug 2021 14:32:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVevUcUBr3+y1H0ToKOvX+Mvr1tntBo+pFHoH60EdCSectXW3zbyygGNGLiY0ZNpgd/H/V X-Received: by 2002:a17:907:77c5:: with SMTP id kz5mr2064964ejc.175.1630099937679; Fri, 27 Aug 2021 14:32:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630099937; cv=none; d=google.com; s=arc-20160816; b=eIGFCedC+QCo2UY+4yIjieozhp/AgMMPa/sOE0lyQSlOgIRElHURxnQI5nzBf+pf6i 3B5THls/loCV96xfbi4Oib4vEDemF5SJMAwEh1d3fz0zPVqD4YyVjjjYHDzrfvu0Veuf CN8gumY4CWJTE6hrRSent+duHm94wB43wybJKhI1VielXTwl+qXbHF9rHRiD5hzn8D61 1p8UqfCIjP4UZBPnEWMJSe7j352WiniBDuWanDKF0xKneC/AUlHzLh7SpKzmcuNsTghw ixr3kSgENpPMrmUEsvgtBW5uOpD29NAunQiT6iFhtyqRPACykYFwROGaGFHb+SouhD1W IXew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=rpHtTbp15HJh/ptbaGOZzKJv8NxAlmEFpkpJjglISck=; b=Eq9fiB76f5eOwFzSLpI+DKwbfq3+jUhbLz6uX842yMReZG56vrhgY2jonEvXgfG0GA nNBV8JAhWPvEiHAWKgqo2RQwWyUnZE8Ro3CH2y39YQoBUOCyBKXCgjpFu258IblnLdwL nOeOqADHzpK71MNXn0uryquQjjlisNIBN+5h3aYVx8a9IoqODpqFDjyqGv9yUPS9ick5 oJs/KApvIjUTt8NXuyKG0Oy2rUTrI+/8JkOAMFNFT6UIPXQ9N6V/DKGi7eqb7Va3JIh1 fXDsk5y0KqwXe11CV60PGGEhjRRJPlBeUIsPQjOJBedvtHs+75ryp+Vep+MvqlmPd7/+ NOZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qybuEzO+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di14si7258517ejc.680.2021.08.27.14.31.49; Fri, 27 Aug 2021 14:32:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qybuEzO+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231926AbhH0V2g (ORCPT + 99 others); Fri, 27 Aug 2021 17:28:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231696AbhH0V2g (ORCPT ); Fri, 27 Aug 2021 17:28:36 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA71EC0613D9; Fri, 27 Aug 2021 14:27:46 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id k24so6956953pgh.8; Fri, 27 Aug 2021 14:27:46 -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=rpHtTbp15HJh/ptbaGOZzKJv8NxAlmEFpkpJjglISck=; b=qybuEzO+6JTEALszutJES4QgB8s8ZfxvsPEDS5dKp4GuFf2drQOyt8uKwBrHhGx0SB R2BhAabUOtNe2U7JJceKd9zQwXKD7u1IAh1cG1TJZWQubnZ2szfDc9B5qYYtMY1AhotR LtppI2dvm4dNOacvJ+26YW0fOTtVXYyPCHWMqH14BdgZ5nqo2hxSJcwQtQETZNdJbjJ3 cFWbwlcSrehlJphrGoOcJo8eo48Mxjb7gMBrgZDDhqc76JodkK9PwijKZpqYLiN/wv7p b48QkJBv/n1wysZ/o2lbJ2CztKr3d9IwKbgbDPAL7t/2FzD3EN6zWkcVZHVLIdid9nEX 6vIw== 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=rpHtTbp15HJh/ptbaGOZzKJv8NxAlmEFpkpJjglISck=; b=Vv6UaMylbaQnKG6SwxnetIKVjtQ7NkMEcc7I+enQJ0p5+lw87JradjHlCf0t8ZKxFD /rmyGnRfzCmH6XDMAl4cpwLskDbV9mqhcwKnqizXh2BDyAr/IwdMUFOsAKa98VLJkr6x +tnzDG5WH3/nt/7ljh3D7nU2Kze2Kn2WTvzIo17fqMxzDha6hHsCKyCT2Jq94YoW3nkm BFQOX0V5cbAN/YnCKg/G/ve0hn073wS+liqtXVXvt7E4TQe2vBc8YWgMbC2KvV4AEVrR ONiafa/mO3nwVq8OhUXM0elCMDdyCYVtvk09rR7Ol1tl36iVnOHIkqfIECUMHJzanCyu pGVw== X-Gm-Message-State: AOAM533uzTRXMDq5owfxD+miQHZvzYXGpClEfWUXVEltL+zUJDBmPrZp SHfMMAyEmvytblQoxZ7Uhe0= X-Received: by 2002:a65:6287:: with SMTP id f7mr9479799pgv.444.1630099666286; Fri, 27 Aug 2021 14:27:46 -0700 (PDT) Received: from localhost (2603-800c-1a02-1bae-e24f-43ff-fee6-449f.res6.spectrum.com. [2603:800c:1a02:1bae:e24f:43ff:fee6:449f]) by smtp.gmail.com with ESMTPSA id x13sm7290038pjh.30.2021.08.27.14.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Aug 2021 14:27:45 -0700 (PDT) Sender: Tejun Heo Date: Fri, 27 Aug 2021 11:27:44 -1000 From: Tejun Heo To: Waiman Long Cc: Zefan Li , Johannes Weiner , Jonathan Corbet , Shuah Khan , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Andrew Morton , Roman Gushchin , Phil Auld , Peter Zijlstra , Juri Lelli , Frederic Weisbecker , Marcelo Tosatti , Michal =?iso-8859-1?Q?Koutn=FD?= Subject: Re: [PATCH v7 5/6] cgroup/cpuset: Update description of cpuset.cpus.partition in cgroup-v2.rst Message-ID: References: <20210825213750.6933-1-longman@redhat.com> <20210825213750.6933-6-longman@redhat.com> <32e27fcc-32f1-b26c-ae91-9e03f7e433af@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Fri, Aug 27, 2021 at 05:19:31PM -0400, Waiman Long wrote: > Well, that is a valid point. The cpus may have been offlined when a > partition is being created. I can certainly relent on this check in forming > a partition. IOW, cpus_allowed can contain some or all offline cpus and a > valid (some are online) or invalid (all are offline) partition can be > formed. I can also allow an invalid child partition to be formed with an > invalid parent partition. However, the cpu exclusivity rules will still > apply. > > Other than that, do you envision any other circumstances where we should > allow an invalid partition to be formed? Now that most restrictions are removed from configuration side, just go all the way? Given that the user must check the status afterwards anyway, I don't see technical or even usability reasons for leaving some pieces behind. Going all the way would be easier to use too - bang in the target config and read the resulting state to reliably find out why a partition isn't valid, especially if we list *all* the reasons so that the user can tell whether the configuration is as intended immediately. Thanks. -- tejun