From mboxrd@z Thu Jan 1 00:00:00 1970 From: Li Zefan Subject: Re: [PATCH cgroup/for-3.11] cgroup: reserve ID 0 for dummy_root and 1 for unified hierarchy Date: Tue, 25 Jun 2013 09:38:59 +0800 Message-ID: <51C8F4B3.1090403@huawei.com> References: <20130622163041.GA15261@htj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130622163041.GA15261-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 To: Tejun Heo Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org On 2013/6/23 0:30, Tejun Heo wrote: > Before 1a57423166 ("cgroup: make hierarchy_id use cyclic idr"), > hierarchy IDs were allocated from 0. As the dummy hierarchy was > always the one first initialized, it got assigned 0 and all other > hierarchies from 1. The patch accidentally changed the minimum > useable ID to 2. > > Let's restore ID 0 for dummy_root and while at it reserve 1 for > unified hierarchy. > > Signed-off-by: Tejun Heo > Cc: stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > --- > kernel/cgroup.c | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > Acked-by: Li Zefan