Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp822129pxb; Tue, 3 Nov 2020 13:31:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfPCLebyDClzZuv1edLl0UGYqbXee9LmOoMNo1UcuXx52VfjBqthkfuNbvflsgoPJ5tYD4 X-Received: by 2002:a17:906:2798:: with SMTP id j24mr21618715ejc.109.1604439102446; Tue, 03 Nov 2020 13:31:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604439102; cv=none; d=google.com; s=arc-20160816; b=j7aID2ka3RFV9A9X/3HKbZ/sRvs9+SOYNyzkMEK0w5Qps69Wh26COOhFn8RaEKSqbK qoMVNZMlTXj2PJ9XAJfd0/mh6Q3LXnFTZs9utT7Qpi69SutPJXLPMViBAKM78np7BiyP 3vSqe01tHV6P9WqZfjf3noa+SQ7+1igTfanj9CBL+aKIyz2qYF1yOEle4s0wSVO9qLZM tSd5rf1IIKpc4SbU67R0tznPi8z1QUrdN4DTYbHTX+vCh1uylboHDz34eO6Vua57l5S1 PaAJeIECb1MRdKmRJqpRzrv1HUobO0IIBFmZPaYyceRLB0ACC3zDM1kEy9w4v4sR8Gto oYMw== 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=3WegILZCENU7df5tuo5kis2uN70iYKKUcHrJ54xZqZY=; b=mGCaKDxGhf8GrIVyEGch5v0AEX+6hU3hsBu007FB6uC8hm1u/YYHxM3T8E6CalHaAS AL7jMHP96uSHJOqZSOHag+BEVMci4V6DddQHuRaj1ntxBxkYSckK0y8cP7aL1P494Lgy VFCW//RsQPqJDrgA6Od9QCJG398+xkUM+KUqfPtjv93uC/vWZeQPrwSL/ilLVCGQauxk j6IlaU6/tj8tzqMrEOEDUUZP/TCIkNrI+zfF9TSJ8PlfgS59av4KJDJ3F0+BSbg6DPeb g1F7uDoLcbSAz/Nb4BCIVx62qyW6mIO+kBFPoMevTy5o01TXouhiCEntxJVS9HmyJhde gu1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=hgBG4D6G; 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 w21si27694ejj.377.2020.11.03.13.31.19; Tue, 03 Nov 2020 13:31: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; dkim=pass header.i=@fb.com header.s=facebook header.b=hgBG4D6G; 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 S2387908AbgKCV1m (ORCPT + 99 others); Tue, 3 Nov 2020 16:27:42 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:10686 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733267AbgKCV1e (ORCPT ); Tue, 3 Nov 2020 16:27:34 -0500 Received: from pps.filterd (m0148461.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0A3LEJ22021738 for ; Tue, 3 Nov 2020 13:27:33 -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=3WegILZCENU7df5tuo5kis2uN70iYKKUcHrJ54xZqZY=; b=hgBG4D6G/TGAUWMUhYi/P0DujZtEd9YUeTxQVVynkC6fC/fvueTFlGGmZs4cNPPJ1k4r ooOOtETISCtahlG34XyGl6zQI4ZnW5L5m6irSZy7yY6cep3Q9XiMxZOSLFGpORNhyc+j +99qMfuj452xvMyIY+hEVKkfacZoYUWSJ3Q= Received: from mail.thefacebook.com ([163.114.132.120]) by mx0a-00082601.pphosted.com with ESMTP id 34hr6p65mq-7 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 03 Nov 2020 13:27:33 -0800 Received: from intmgw001.41.prn1.facebook.com (2620:10d:c085:108::8) by mail.thefacebook.com (2620:10d:c085:11d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 3 Nov 2020 13:27:32 -0800 Received: by devvm1755.vll0.facebook.com (Postfix, from userid 111017) id 675FF2026694; Tue, 3 Nov 2020 13:27:27 -0800 (PST) From: Roman Gushchin To: CC: Andrew Morton , Shakeel Butt , Johannes Weiner , Michal Hocko , Tejun Heo , , , Roman Gushchin Subject: [PATCH rfc 3/3] cgroup: remove obsoleted broken_hierarchy and warned_broken_hierarchy Date: Tue, 3 Nov 2020 13:27:25 -0800 Message-ID: <20201103212725.3716088-4-guro@fb.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20201103212725.3716088-1-guro@fb.com> References: <20201103212725.3716088-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-03_14:2020-11-03,2020-11-03 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 malwarescore=0 phishscore=0 clxscore=1015 lowpriorityscore=0 adultscore=0 mlxscore=0 bulkscore=0 suspectscore=1 mlxlogscore=831 spamscore=0 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011030142 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 --- 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