Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp134078pxb; Thu, 14 Jan 2021 22:01:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwf7KvypelroflEFADWUwL9manGXEDEfmtZqcrf9nViFZUX+OBBNGcgi7yFYdi7q67U2bAc X-Received: by 2002:a17:906:58f:: with SMTP id 15mr7549242ejn.67.1610690502947; Thu, 14 Jan 2021 22:01:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610690502; cv=none; d=google.com; s=arc-20160816; b=nvl31Hamd/IdSfWDIyxzOj6Yqcjrl2bSCHLBdbv/9jdyGqzKFAOYCbX1vHZAYZnz8/ /lOPz5dGBWsuG2Ks42V/joTrQKGBhbRiy0MSe7tiJ2eO7PHMPe8wxPALMnQvbBECWbD9 PIgpZ7AoivclsIqzWCkW5rWqu9RD+5UzGZoUX3ai+w8PHt1BjGveb4rDO/0nKi7j5nmc 7cPmYNZ5lxPb+NTziaC1i24gB9sYMWgB+d/h2v8ZmjwkDCJulotGKinWIvvq5cSuxnF7 rM6sfqrZnj1+fVLgJA7j5Bm7bMwpnFXGhePC9HPx7YphRK6MsPShrEhHzn+XiRpnWbXz UqZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=/1g0zlXc5SRQwEclUnGYQdY5Oc+P4Cfmzatl0cCuxgw=; b=ML37IcMqUbIe91z3JbClwnshzb6LrzhQ7L/2+lreT4942u4CvgpSZPFkMzZ8mi49/7 z0v1oT/Aze9IEl7Ed3A63jak5QNjNMbEIhULBLRsbkwmk29j7dZVAAEJ8Zzwwo5iqlxq TGQJ6+6fgDR8g8RMi4IWc8zwL9F43UmPEAOsVgU0jDeK8F9eM8prcgvhFr+6+hdacSB0 cgose4D+OPS5szG5Vl+5h19MMDVznMMG5K3anE08vqn8X5v8xnDHGZxNFYArlbVgoaDH 22Ao8BYGJfYfUxl4D92fwwonDtguvs3lBqRGut6uVcbzALFHhWJi4upfjfu9qXVAh83r h+YA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs18si3224520edb.447.2021.01.14.22.01.19; Thu, 14 Jan 2021 22:01:42 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728546AbhAOF7I (ORCPT + 99 others); Fri, 15 Jan 2021 00:59:08 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:10724 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbhAOF7H (ORCPT ); Fri, 15 Jan 2021 00:59:07 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DH9S171rYzl3sR; Fri, 15 Jan 2021 13:57:05 +0800 (CST) Received: from [10.174.176.61] (10.174.176.61) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Fri, 15 Jan 2021 13:58:20 +0800 Subject: Re: [PATCH v2] cgroup-v1: add disabled controller check in cgroup1_parse_param() To: Tejun Heo References: <20201218061755.121205-1-chenzhou10@huawei.com> <7804658e-7644-8edb-5ca8-0c97389c8c62@huawei.com> CC: =?UTF-8?Q?Michal_Koutn=c3=bd?= , , , , From: chenzhou Message-ID: Date: Fri, 15 Jan 2021 13:58:20 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.176.61] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/1/15 11:17, Tejun Heo wrote: > Hello, > > On Fri, Jan 15, 2021 at 09:55:43AM +0800, chenzhou wrote: >> Yeah, this will select all enabled controllers, but which doesn't the behavior we want. >> I think the case should return error with information "Disabled controller xx" rather than >> attaching all the other enabled controllers. >> >> For example, boot with cgroup_no_v1=cpu, and then mount with >> "mount -t cgroup -o cpu cpu /sys/fs/cgroup/cpu", then all enabled controllers will >> be attached expect cpu. > Okay, that explanation actually makes sense. Can you please update the > description to include what's broken and how it's being fixed? It really > isn't clear what the patch is trying to achieve from the current > description. Ok, will update the description. > > Thanks. >