Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4346537pxb; Tue, 10 Nov 2020 14:12:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmb+/5vOq8+C9IPVqHAMKES9EwuvF3gaPJ3EBDeEZJq8uBX7G96/6pQ6xXJtmoJ/WQchl/ X-Received: by 2002:a50:f0d4:: with SMTP id a20mr1654122edm.303.1605046320448; Tue, 10 Nov 2020 14:12:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605046320; cv=none; d=google.com; s=arc-20160816; b=005fgMWji64cX7Ck2EcKB5NKysNekrrHuv/oew3Q/ktTswgBIiU5PDsGSvOGvU6ajf Iv8NoKgSJ0XhMy8k3e2lkTd6OylFUOUq+MnsOGLUKmI1mKwUwEf8euiKohZ8WJYdVZ39 48w/tbtfNNz6mRVM5CuZmpvCMRaucivfGWSno8nM8Nqd6kXpi/qChBcoWwJo20O+vuwF dpuGwySwWImSKYMNziAT2apvJKviGBopPnwKv4Dtp0OS9T7XVGI6RO9E9hthYDn4sLwC QCAAVjR6TBnfQpTxroOyOSzjcqD4ZVkoNJA3YW1/o/jNfRUFq2x+20ioFrstbXLrBVlG Dwmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=x6Bn9rxQlaC3JmjCV92jgNxBPwyEKeOSzCXajeDCw2w=; b=hv/FqpDf7NqXhU+dI0a52KecjHVOD8HTKW95D8zWeHhsuG+ZcykNgZQlu/aThmMcNc TQko84mlhHb9cSGXodS5MEgkQIUeHCVxp+yeDnc9FDtVn62ZWNNOr+Skn+JAcC0X1T2m XKHnZ8ArJZMkMsloI/GKLnYDkzw3dObD/r4Cyk0aUywbs/bcdmUJOqGRB3h+sV+af+MA 3zEFyuPCPp7NngnIfHhX6AvveuJljTqX75FANktqQQhK3vt4wi1wbu1aH66cYW4MyUq3 IzAb0QegKzD+4lQdleWuoGZL29vAegVMkQ4A5EbUIzsf6KjwnGYR5i97x7g+q7qmv74N idwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=Kt+hfktQ; 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=REJECT sp=REJECT dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r3si5354195ejj.531.2020.11.10.14.11.36; Tue, 10 Nov 2020 14:12:00 -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; dkim=pass header.i=@fb.com header.s=facebook header.b=Kt+hfktQ; 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=REJECT sp=REJECT dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731910AbgKJWIT (ORCPT + 99 others); Tue, 10 Nov 2020 17:08:19 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:33784 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732160AbgKJWIS (ORCPT ); Tue, 10 Nov 2020 17:08:18 -0500 Received: from pps.filterd (m0044010.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0AAM6qt2005169 for ; Tue, 10 Nov 2020 14:08:17 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=facebook; bh=x6Bn9rxQlaC3JmjCV92jgNxBPwyEKeOSzCXajeDCw2w=; b=Kt+hfktQOO1aZf08LDVjsi1FDtTuUJosGtaKb135shwFnTk9ACv+2bFuahdsdjUHsSUT X8Ij0ZD+reZyRfsUUv32y+NFMZm1yVStYIYiGIJBR7+zqSX59Q3hf/oxkKIbNY2ww0N5 sqQhtg5tvQ6LS7IREXAmI6U+w983w7VsAE8= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 34qwve22w5-12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 10 Nov 2020 14:08:17 -0800 Received: from intmgw001.06.prn3.facebook.com (2620:10d:c0a8:1b::d) by mail.thefacebook.com (2620:10d:c0a8:82::f) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 10 Nov 2020 14:08:06 -0800 Received: by devvm1755.vll0.facebook.com (Postfix, from userid 111017) id 3704B239AED7; Tue, 10 Nov 2020 14:08:01 -0800 (PST) From: Roman Gushchin To: Andrew Morton , CC: Shakeel Butt , Johannes Weiner , Michal Hocko , , David Rientjes , , Roman Gushchin Subject: [PATCH v1 3/3] cgroup: remove obsoleted broken_hierarchy and warned_broken_hierarchy Date: Tue, 10 Nov 2020 14:08:00 -0800 Message-ID: <20201110220800.929549-4-guro@fb.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20201110220800.929549-1-guro@fb.com> References: <20201110220800.929549-1-guro@fb.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-FB-Internal: Safe Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-10_08:2020-11-10,2020-11-10 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 bulkscore=0 mlxlogscore=966 spamscore=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 adultscore=0 malwarescore=0 phishscore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011100150 X-FB-Internal: deliver Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With the deprecation of the non-hierarchical mode of the memory controller there are no more examples of broken hierarchies left. Let's remove the cgroup core code which was supposed to print warnings about creating of broken hierarchies. Signed-off-by: Roman Gushchin Reviewed-by: Shakeel Butt Acked-by: David Rientjes --- include/linux/cgroup-defs.h | 15 --------------- kernel/cgroup/cgroup.c | 7 ------- 2 files changed, 22 deletions(-) diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h index fee0b5547cd0..559ee05f86b2 100644 --- a/include/linux/cgroup-defs.h +++ b/include/linux/cgroup-defs.h @@ -668,21 +668,6 @@ struct cgroup_subsys { */ bool threaded:1; =20 - /* - * If %false, this subsystem is properly hierarchical - - * configuration, resource accounting and restriction on a parent - * cgroup cover those of its children. If %true, hierarchy support - * is broken in some ways - some subsystems ignore hierarchy - * completely while others are only implemented half-way. - * - * It's now disallowed to create nested cgroups if the subsystem is - * broken and cgroup core will emit a warning message on such - * cases. Eventually, all subsystems will be made properly - * hierarchical and this will go away. - */ - bool broken_hierarchy:1; - bool warned_broken_hierarchy:1; - /* the following two fields are initialized automtically during boot */ int id; const char *name; diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 621a586e3529..fefa21981027 100644 --- a/kernel/cgroup/cgroup.c +++ b/kernel/cgroup/cgroup.c @@ -5149,13 +5149,6 @@ static struct cgroup_subsys_state *css_create(stru= ct cgroup *cgrp, if (err) goto err_list_del; =20 - if (ss->broken_hierarchy && !ss->warned_broken_hierarchy && - cgroup_parent(parent)) { - pr_warn("%s (%d) created nested cgroup for controller \"%s\" which has= incomplete hierarchy support. Nested cgroups may change behavior in the = future.\n", - current->comm, current->pid, ss->name); - ss->warned_broken_hierarchy =3D true; - } - return css; =20 err_list_del: --=20 2.26.2