Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp631534pxb; Thu, 26 Aug 2021 10:37:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+9bDy3OJhnPKJje/p6uZ4ubK3D4J3EPq5ro6qP08gKISXLIM6AAlrtNOOQFrmzlRzi8sU X-Received: by 2002:a05:6402:520f:: with SMTP id s15mr5459407edd.139.1629999449053; Thu, 26 Aug 2021 10:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629999449; cv=none; d=google.com; s=arc-20160816; b=ScEwGy8ygR0tZrJ3HhBfnMB72VSnwlyH6d/HnOFKm35mfpVmpTGtAYYwhlk97nIfOh ZbJmWT3umHpqQfisZEk0lc0ogiHGB2/peDPZGeV59AbXhovHvAtIynFmuqHjOYp0ooWN /ukcAhKYfrKWUQxElWaxaYbggfkusNRSOTabIZqCo7gvvBQ5FmteHJ59e/x69mguY7s9 lII+I2U+JhI1H4CGYUzosR6XEsNswZrvGTxCro/uD6D+mtL+fc50TMAMNEBlZapHVxnK GTnhc7X2HORouBzXw/8Icr03dzz0gzPtYwzgE2zNb1Al56hgeUhHUI2PYhddZT5P5DlB cEYA== 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=EZSEycsP4qShPCh1rVVDGzpSXPPGPKKt4tNdiEEa5Yo=; b=PfOxmkwAe9eGW9H1BRER+eTrVLUY7GTGaDQ6A2cq53vWyBDQ5KsRYAsht0DEcHU/UI T0R5UTu6oQjxouciL0y/dGUO5JezoFW0u2PaMr4N326yawzy2HhW0KHZVd4CMbz5L9H8 wxH9GRZo0mtD96wol1ZM5X/iF91xcdo2txYsrJCRI1HPqMQxDy+zBmf2aIsafMN+jmZS rDzXmfcbiacMI+kMF7OPiansz+UG1Mg6a1m3LzEsJBcYtT56yBygDNyLP+VbK1QY3bku 4mAlo6UI2B0cyFt2jRHaIVsMJA2vWvq/cH4ElgeTRwmwAn2tynZtEcNjvx2lVwAKfRG6 NzEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c94jOw6m; 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 js20si3455402ejc.216.2021.08.26.10.36.59; Thu, 26 Aug 2021 10:37:29 -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=c94jOw6m; 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 S232775AbhHZRgI (ORCPT + 99 others); Thu, 26 Aug 2021 13:36:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230242AbhHZRgI (ORCPT ); Thu, 26 Aug 2021 13:36:08 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AA72C061757; Thu, 26 Aug 2021 10:35:20 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id q3so2249052plx.4; Thu, 26 Aug 2021 10:35:20 -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=EZSEycsP4qShPCh1rVVDGzpSXPPGPKKt4tNdiEEa5Yo=; b=c94jOw6mYlRttgV/ELojAGblRHKn2cClqABKr0Rvj2jkxVok/L/2iBafzHm+g/ccHc W9R0GGnvBRh0fDrFaOgkTIcPtoaluXGUrLvFqa8Yh+KxKHeCQeSlkFA89mn3jvrRkRP1 fGr97QjrUTLFCaEO12/dK154B2bAXnCGhCh8L32Kd7ZONxYdm1ispu+eBkW5si1Gs1uX hvMTI3drWfbpfGiYw9LRuL3xXT1FJVCW65JZm9q6oVQP9kSYO8mSg4NZXnHatM/tb+Z6 /CKBO6g+WRERs1NDPKp4ymYaIWkU1hUNJVAVYLZWGW7xll6zIUiQSTuOLzVvzDsMFke0 d9qw== 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=EZSEycsP4qShPCh1rVVDGzpSXPPGPKKt4tNdiEEa5Yo=; b=nu+T1Gemzsc6NxTZ750jZll8cjG/8wkx/OiX9sul/I+OFLmY9QE+vIutnPq8Xb+MSQ +uoeOxoWNP/fLEx3AOyfLEVD+/Ydi1H6cfeGRdN4vdVHi6W82gaGa/6VnBgh4Y7i90Oc AzE5BGeNnuThMVcwSupGJnc+mkfvZIAxyDNmfxb6iyY9BGpi2b0VEKbX0kcfymzohl1u /cDqPRkHeSFf6fZsEaK+gHj6QRDZFtbXZIqRD2x4UVWKh5eaiAapkVShxVUTTrX7zyRW mwjAkMyBH/dmA5FRN9o2QRZYQHq731n3FfesdojjF3x0mCyVxrQIbwlL122ZsW4uG+TU mqSQ== X-Gm-Message-State: AOAM530CwsJYYmVdf9qXbTO5YROOKdzL9sMoj5GQ7BYhkh9ZUBMA44FD QJ5SrvLfOIWtdq5mwxocL04= X-Received: by 2002:a17:90a:1991:: with SMTP id 17mr9217042pji.149.1629999319833; Thu, 26 Aug 2021 10:35:19 -0700 (PDT) Received: from localhost ([2620:10d:c090:400::5:a096]) by smtp.gmail.com with ESMTPSA id n14sm10441971pjm.5.2021.08.26.10.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Aug 2021 10:35:19 -0700 (PDT) Sender: Tejun Heo Date: Thu, 26 Aug 2021 07:35:14 -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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210825213750.6933-6-longman@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Waiman. Let's stop iterating on the patchset until we reach a consensus. On Wed, Aug 25, 2021 at 05:37:49PM -0400, Waiman Long wrote: > 1) The "cpuset.cpus" is not empty and the list of CPUs are > exclusive, i.e. they are not shared by any of its siblings. Part of it can be reached by cpus going offline. > 2) The parent cgroup is a partition root. This condition can happen if a parent stop being a partition. > - 3) The "cpuset.cpus" is also a proper subset of the parent's > + 3) The "cpuset.cpus" is a subset of the parent's > "cpuset.cpus.effective". This can happen if cpus go offline. > 4) There is no child cgroups with cpuset enabled. This is for > eliminating corner cases that have to be handled if such a > condition is allowed. This may make sense as a short cut for us but doesn't really stem from interface or behavior requirements. Of the four conditions listed, two are bogus (the states can be reached through a different path and the configuration success or failure can be timing dependent if configuration racaes against cpu hotplug operations) and one maybe makes sense half-way and one is more of a shortcut. Can't we just replace these with transitions to invalid state with proper explanation? That'd get rid of the error handling duplications from both the kernel and user side, make automated configurations which may race against hot plug operations reliable, and consistently provide users with why something failed. Thank you. -- tejun