From mboxrd@z Thu Jan 1 00:00:00 1970 From: Raghavendra K T Subject: Re: [PATCH 12/12] cgroup: implement dynamic subtree controller enable/disable on the default hierarchy Date: Mon, 21 Apr 2014 13:47:38 +0530 Message-ID: <5354D422.8010606@linux.vnet.ibm.com> References: <1397511430-2673-1-git-send-email-tj@kernel.org> <1397511430-2673-13-git-send-email-tj@kernel.org> <20140418204108.GL23576@htj.dyndns.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140418204108.GL23576-Gd/HAXX7CRxy/B6EtB590w@public.gmane.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Tejun Heo Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Linux Kernel Mailing List On 04/19/2014 02:11 AM, Tejun Heo wrote: > Hello, > > On Thu, Apr 17, 2014 at 11:33:50PM +0530, Raghavendra KT wrote: >> On Tue, Apr 15, 2014 at 3:07 AM, Tejun Heo wrote: >> I undertsand that with the above parsing we could do >> echo "-blkio +blkio" > cgroup.subtree_control and honor last enable/disable. > > Yeah, and the behavior is described in the following document. > Hello Tejun, Thanks for the kind reply. The document has helped me a lot while reviewing,testing the unified hierarchy code. > http://lkml.kernel.org/g/20140416145248.GD1257-Gd/HAXX7CRxy/B6EtB590w@public.gmane.org > >> It confused me while testing. do you think we should return -EINVAL in >> such case? > > Hmmm... I think whatever comes later wins is a pretty clear and easy > rule, no? Very much correct. and if there is a feeling to check multiple entry later I would happy to update the code.