From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758321AbcIHWXE (ORCPT ); Thu, 8 Sep 2016 18:23:04 -0400 Received: from mga11.intel.com ([192.55.52.93]:23855 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753046AbcIHWXD (ORCPT ); Thu, 8 Sep 2016 18:23:03 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,302,1470726000"; d="scan'208";a="1047562523" Date: Thu, 8 Sep 2016 18:23:14 -0700 From: Fenghua Yu To: Shaohua Li Cc: Fenghua Yu , Thomas Gleixner , "H. Peter Anvin" , Ingo Molnar , Tony Luck , Peter Zijlstra , Tejun Heo , Borislav Petkov , Stephane Eranian , Marcelo Tosatti , David Carrillo-Cisneros , Ravi V Shankar , Vikas Shivappa , Sai Prakhya , linux-kernel , x86 Subject: Re: [PATCH v2 27/33] x86/intel_rdt_rdtgroup.c: Implement resctrl file system commands Message-ID: <20160909012313.GB42229@linux.intel.com> References: <1473328647-33116-1-git-send-email-fenghua.yu@intel.com> <1473328647-33116-28-git-send-email-fenghua.yu@intel.com> <20160908220412.GB64153@shli-mbp.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160908220412.GB64153@shli-mbp.local> 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 Thu, Sep 08, 2016 at 03:04:12PM -0700, Shaohua Li wrote: > On Thu, Sep 08, 2016 at 02:57:21AM -0700, Fenghua Yu wrote: > > /* > > * kernfs_root - find out the kernfs_root a kernfs_node belongs to > > @@ -730,6 +749,110 @@ static void rdtgroup_destroy_locked(struct rdtgroup *rdtgrp) > > kernfs_remove(rdtgrp->kn); > > } > > > > +static int rdtgroup_mkdir(struct kernfs_node *parent_kn, const char *name, > > + umode_t mode) > > +{ > > + struct rdtgroup *parent, *rdtgrp; > > + struct rdtgroup_root *root; > > + struct kernfs_node *kn; > > + int ret; > > + > > + if (parent_kn != root_rdtgrp->kn) > > + return -EPERM; > > + > > So we can't create nested groups. Is this limitation temporary? I don't see > this is mentioned in the interface document. Yes, we cannot create nested groups, i.e. up to one level of sub-directory in the resctrl file system. This is different from cgroup. I can add this info in the intel_rdt_ui.txt. Thanks. -Fenghua