Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp287710pxb; Thu, 12 Aug 2021 16:40:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQI9CoHRA/BdM/c//gES0t0es8SH1c9sl2+CP5cF1sJACogPYQ+e8AXulmTcgx55pKNb4K X-Received: by 2002:a02:a581:: with SMTP id b1mr5919135jam.84.1628811652710; Thu, 12 Aug 2021 16:40:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628811652; cv=none; d=google.com; s=arc-20160816; b=wXS1XFZH/IiIH1e0xPFeunTDrVQk5fMUv2a0/GoZPT3M5umrFE5HUbX17nJpMpprw5 9xyCYMdVPsPMeCN10mDMKr2kTbYQ7PuTNw8c/gP6hciuxABOaBesBwXibr27FpeOeVIM c6Qfm7UaQmDJN0vsZg6pDNKX6R+h9JGgqn2xKV8Faeh1fFNiqWsSUrlDzPM3iPOMHGsq aIPLHFtL9fRLZZAMC1rj3kC2R1kB/5eyAR+EQsrkhGs3MI1NmV5WkCgaf0BxcHmcLE8v SDNVUZSwg55LflvtrZUUuUMoySpgffGLKgj9BZOadh/R88AQOs4Eyl7vmPKIgDKnncqW Hxmg== 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=8zFCvlCdjE9f7sPEj6Bash+YWPaS4lcq1GCfTDwodeA=; b=r4O4lWzOJA/X8bTzSjVyAbH+IRm6E3GaCiY3STIhfXl3ksYSKM0U/f3HSj4vA+1cNw nwfXH0zDreMq2D9ZY//2eWuae9SSkNvVddlewiK28t+5FHptbTK84HYA6YW9skJ00nSx +utt9qNlldcYHTVkUvufdTBFhREz04DI9zm6o2c5iNBx9/zAn690tIaHPRAwc0ERNmQ0 hR6YZfKBh3XInAiaVuZiF5ReEY9UGq8nGcB6E366j6iXREey8B97u2LfGtZBwVovg5K6 /ZjwjhFrMrxzYx/+HGyEc5d61zxqDbz1uiMvT6utn8RvjobFfUQ9/eC3hvlbjHuDC81L rjww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R4yXwtdc; 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 b16si3945255ior.73.2021.08.12.16.40.42; Thu, 12 Aug 2021 16:40:52 -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=R4yXwtdc; 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 S238185AbhHLWTJ (ORCPT + 99 others); Thu, 12 Aug 2021 18:19:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238173AbhHLWTJ (ORCPT ); Thu, 12 Aug 2021 18:19:09 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 504EBC061756; Thu, 12 Aug 2021 15:18:43 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id w13-20020a17090aea0db029017897a5f7bcso12996855pjy.5; Thu, 12 Aug 2021 15:18:43 -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=8zFCvlCdjE9f7sPEj6Bash+YWPaS4lcq1GCfTDwodeA=; b=R4yXwtdcvocwR/bdi8p+iX4Ffhyp8BtxcPTMUe3KaMmMcL1xZcLE1vuGp3F+9TdP8s dcdiW38YxfL7HE1FEOsByI0q89D59M470EtczPWxls4gAKkZCVpWm8S3vtG+tqrudv5v iHMG81t3Qc0Sf6N8VvoQqo5NhBfUb2x7FUlnJf5rwedYdXxYmNIEuOzvCV1rwq3AEtvl nWr8FlzZzZHYpft+FuA/4H7fvr3ch3zOHKlg6zcM9pAw4l+fz+850kwswV+B/kfb17Uf FrCh5S5NxORAqyS3QZTWFqQLNdxbEZJQBLHr3ILpsZfUO/WxiNpSd0slQY8bifjFOZLP XVdQ== 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=8zFCvlCdjE9f7sPEj6Bash+YWPaS4lcq1GCfTDwodeA=; b=M4Y3Ud0hv6RzbCYqqeMnfBSi/HSmsL0HYdfNEMRfGINMHg3vEUq7U4ERHj9rNS5FNH fxEFFE5vGjbOsmj6qXvA+jBVLQvzDc3oD0bHqfh6ySE+zIVDf5qZBGR3Cwx+w2lc5TME MZ0Z8dwX3Yhex/NYnZ6OrQKpyUZHtSe6Dlyh/TNhbnng53cyYVtiQMSKmMK5z8nSqfvP pBlE6poXBWMtkfIPEcV1y1/qW6FRBGiQ6waJAVXLhIiam8IJe+oRu/aiJN2TK1PxkAJM wF1k2zdu83xFPKjmj+PkJNC2SxBnvakrl6U/p7m7/F/ANaoNJEVEHuspvh024O3pbKZ6 ucuw== X-Gm-Message-State: AOAM5317KL+Jq7zIHjW2g+ct5IdopE/CQzEEtohlDZr3/EWp76lE7pUv 8XW2GT1RBTsaeI8ekozU6oA= X-Received: by 2002:a65:41c6:: with SMTP id b6mr5846997pgq.206.1628806722676; Thu, 12 Aug 2021 15:18:42 -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 x19sm5101642pgk.37.2021.08.12.15.18.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Aug 2021 15:18:42 -0700 (PDT) Sender: Tejun Heo Date: Thu, 12 Aug 2021 12:18:40 -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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Wed, Aug 11, 2021 at 03:27:20PM -0400, Waiman Long wrote: > Disabling partition at the parent level does invalidate all the child > partitions under it. So it must be done with care when we disable a > partition. > > How about we give some indication that a child partition exist when reading > cpuset.cpus.partition and recommend double-checking it before disabling a > partition? For example, we keep track of the number of cpus delegated to > child partitions. Perhaps we can list that information on read. > > With that information available, I have no objection to allow disabling a > parent partition with child partitions under it. This is a general problem which has always existed regardless of whether the errors are synchronous or not. There are many different reasons that a write to a cpuset interface file could fail and it has never been easy to tell why a given operation was rejected. Making error notifications asynchronous doesn't really change anything fundamental although it does make the situation a bit more opaque. I'm all for improving visibility. Now that we can consolidate most error states into a unified failure state, this might actually be easier to do. IOW, we now just have to explain why a given cgroup is in an invalid state rather than additionally having to explain why a given write has been rejected, which is pretty awkward to do as those failures are transient and local to the writer. So, if you wanna tackle this, let's do it right and provide something comprehensive rather than explaining just one failure. Thanks. -- tejun