Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4670964pxt; Wed, 11 Aug 2021 11:13:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOIqIp2pXNqVVl4vyctkxbu5it9yunNSPNFZ7p1dlghJoDFPZIeQ2syT1tKyJ4dZUqJJg9 X-Received: by 2002:a05:6402:138d:: with SMTP id b13mr183632edv.355.1628705638816; Wed, 11 Aug 2021 11:13:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628705638; cv=none; d=google.com; s=arc-20160816; b=L0itcJMWLQy96K28Pjrxo10nIUEIBvrM8/W0RZjcLXvBIdbgcnpbm0Cdm64ij7+ar7 dTH8NcfVCMuJGs3tyTuBpGh0uKFSxvajkAe3cpbEH+XtjEgrUjwIY/PXqE2dpyRbGAmV CixKHoHCRV6MJy5/shPyWmq5cVejagmUiGkKp/vUemSJNoSmJ3Tz6hF67UIuTwRAXD6D ZMPKtNa3o+0imWphfU2KpZYYSQPmSIXet2m0XBGlvRX2BwUPc7efD25/K0AHkZjydxf2 qR6jTgiuswAi6lHaMngbw5vjWscgGqIxJMn9nV8MX/zoT3La5urTWJZKYvujwZ1AppGK 67Mg== 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=XPgK+iyXy46IJH8Hj0istqzWfGCuBh53Hqdy3vFF5K4=; b=arwdsOH600yPCyHuMAunXZZrq3MaQyJ92IIiegAXWU7f6t1f/e2S/SMRW8WywM7L8h X2F1Wrl9fmsa2lgYtp9UTHUK3Lf8qVp0Q2yiQ7CDTuO3T+J0NUQ8xYk1EEZAlWINVxaV CADZ4bdFJE7SofrA7NtBKdLmA3GszYujYBsG2vwqxmXtYKOHARPt+GEm1hc0xYuTtupA 7nDh5dZGSF8d3URYDxeovtE2vo7Q+Sx1hOPHsP5quezF/8KzxRZsJvuBShZyLlPH0PSg UmfHn5ruoUPdzcamj7ZPJx2pS+iUE76NDV/uKiYe99HJJgNuhsd4t2DjfaCD51X6Pcez WqGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r7PopeTg; 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 s2si3406891ejh.475.2021.08.11.11.13.34; Wed, 11 Aug 2021 11:13:58 -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=r7PopeTg; 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 S229703AbhHKSJM (ORCPT + 99 others); Wed, 11 Aug 2021 14:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbhHKSJL (ORCPT ); Wed, 11 Aug 2021 14:09:11 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC2B3C061765; Wed, 11 Aug 2021 11:08:47 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d1so3748250pll.1; Wed, 11 Aug 2021 11:08:47 -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=XPgK+iyXy46IJH8Hj0istqzWfGCuBh53Hqdy3vFF5K4=; b=r7PopeTgrDc7n/bWwJ5e0f+BfBFRl6LtdflJvnIbuLrPKhqkoKkpxRUqoXMKOpzs0V Q4Gnet2Qeyd83m0rW2rhAHI1r3i6lVIitzHZcv//k30rtHw4yEevrtcr44drgCpAVOFa kEqekTBwmfWRuPmSupYTKQRxrPvxcABuszOiWjjJrZXnzWBI0HvEpD26C0FVOXhTr24+ QJ2tHd2EfoMIJnZikWNESVpzCCC5dA+gbx+ix8M3McgtB/jYW3w4G5mHME7Ncr5oy09T zUmokknlszJGYu245+vvI3g6gp3mip3SjOKvWykSOL/xetEvmbOKOEfb1Rxi43R70IVB kubQ== 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=XPgK+iyXy46IJH8Hj0istqzWfGCuBh53Hqdy3vFF5K4=; b=ftY6tcSrhnoh9AiA+lySnP4rdjq1OkxAKxXk4jgtLUwuijlH5UZoh6vGdUNC+pms8b fZyZK2Q2pgMHaNO2DqDu6MWLLVGYxpOkDdOk3kkiz+UvFHUj2Tpj0EYtwX+PuDZ57Ow4 Zd1KW7cN5jJGvPv4yPUU1q/RJDI2613tCrJHCzqmDYlvjimsy1/Egk0rWzr9f3ydQJru eK86LalBHcnvvYiXXEdRXUg09LrUMKmj1Ur3L4T7Td84U3pPtpxFB8vkty6PeARaT/3f mUquz33Jmx3/r3/Q2ClMhAGBeaI8VCxF+ELGRAU4b6Hr8uUUMe7NzEIo+9oQlxig/LIF WjJg== X-Gm-Message-State: AOAM530vwFfQBEUlRJpMHWeP8EgLbPNqrEJ4BtkHnyaLDScTHivBl/J8 WH84MJR9ziKx4AiPyVy0bx8= X-Received: by 2002:a63:5c10:: with SMTP id q16mr10236pgb.128.1628705327189; Wed, 11 Aug 2021 11:08:47 -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 k3sm198429pfc.16.2021.08.11.11.08.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 11:08:46 -0700 (PDT) Sender: Tejun Heo Date: Wed, 11 Aug 2021 08:08:41 -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 v4 2/6] cgroup/cpuset: Properly handle partition root tree Message-ID: References: <20210811030607.13824-1-longman@redhat.com> <20210811030607.13824-3-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210811030607.13824-3-longman@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Tue, Aug 10, 2021 at 11:06:03PM -0400, Waiman Long wrote: > For a partition root tree with parent and child partition roots, this > patch will now prohibit changing parent partition root back to member > as changes to "cpuset.cpus.partition" should not cause those child > partition roots to become invalid. So, the general rule is that a descendant should never be able to affect or restrict what an ancestor can do in terms of configuration. This is because descendant cgroups can be delegated and a system manager sitting at a higher level in the hierarchy may not have much control over what happens under delegated subtrees. Given that we're promoting the error state as the first class citizen in the interface anyway, wouldn't it be better to keep this in line too? Thanks. -- tejun