From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752578AbdGRVHE (ORCPT ); Tue, 18 Jul 2017 17:07:04 -0400 Received: from mail-qt0-f179.google.com ([209.85.216.179]:35966 "EHLO mail-qt0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751995AbdGRVHC (ORCPT ); Tue, 18 Jul 2017 17:07:02 -0400 Date: Tue, 18 Jul 2017 17:06:58 -0400 From: Tejun Heo To: Waiman Long Cc: Li Zefan , Johannes Weiner , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cgroup: Show control files in cgroup2 root after mount Message-ID: <20170718210658.GF3365493@devbig577.frc2.facebook.com> References: <1500406336-29512-1-git-send-email-longman@redhat.com> <20170718195148.GC3365493@devbig577.frc2.facebook.com> <539870d2-8b85-2f54-61bd-4ba068e75ce0@redhat.com> <20170718201229.GD3365493@devbig577.frc2.facebook.com> <255cc198-2c10-af76-98ca-086807d11540@redhat.com> <20170718205009.GE3365493@devbig577.frc2.facebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170718205009.GE3365493@devbig577.frc2.facebook.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 18, 2017 at 04:50:10PM -0400, Tejun Heo wrote: > Heh, I'm really confused. If I do the same thing, I get the following > result which makes sense as the files would be activated in > cgroup_apply_cftypes() when the debug controller is registered during > boot. > > # mkdir /cgroup2 > # mount -t cgroup2 cgroup2 /cgroup2 > # ls /cgroup2/ > cgroup.controllers debug.current_css_set > cgroup.procs debug.current_css_set_cg_links > cgroup.subtree_control debug.current_css_set_refcount > cgroup.threads debug.masks > debug.csses debug.taskcount > debug.css_links Never mind. I can repro after getting rid of some automatic umounts from rc.local. Will find out what went wrong. Thanks! -- tejun