From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH v3 6/6] cgroup: Assign subsystem IDs during compile time Date: Tue, 14 Aug 2012 10:27:49 -0700 Message-ID: <20120814172749.GL25632@google.com> References: <1344949343-26090-1-git-send-email-wagi@monom.org> <1344949343-26090-8-git-send-email-wagi@monom.org> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=CLGHJIY9vwRUh72OK9N+EUsYo4onI4pCO2PbGTcon/A=; b=krSECpmLJlbh5uSRbTQFA8qCjFt5V92KhJx+Am3WQRESwr15XwC3uOpj10wCOYH8HM O/BU5vEvWOkkBA+YiUVlRCt+8xk6BFlVbAychJkaTBTCNO41DBVPTflvLttL1zFVWMYY YpF6sfBmyPZvAbWcSmr1WlwJWO/1/lHyklw8m8csxMjzdAD6YRHXR4ucvYr9blZLyOYh p7YriTPi+T27t5JNbZZrlrqAixk254TA/pdX7JCNYmA7LTspPIcUVkTucM4WeOcV18ju UL6ALUksAK9nSmjCiaf7epKLTKDY4MC7c9n4vfjOK4gD9iXZEuhu7F037kjb1/7cWcc9 +6kg== Content-Disposition: inline In-Reply-To: <1344949343-26090-8-git-send-email-wagi-kQCPcA+X3s7YtjvyW6yDsg@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Daniel Wagner Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Daniel Wagner , "David S. Miller" , Andrew Morton , Eric Dumazet , Gao feng , Glauber Costa , Jamal Hadi Salim , John Fastabend , Kamezawa Hiroyuki , Li Zefan , Neil Horman On Tue, Aug 14, 2012 at 03:02:23PM +0200, Daniel Wagner wrote: > From: Daniel Wagner > > We are able to safe some space when we assign the subsystem > IDs at compile time. Instead of allocating per cgroup > cgroup->subsys[CGROUP_SUBSYS_COUNT] where CGROUP_SUBSYS_COUNT is > always 64, we allocate 12 + 1 at max (at this point there are 12 > subsystem). The additinal one is the price we have to pay to > distinguish between builtin and module subsystems. > > We should only access task_cls_classid() and task_netprioidx() > if the subsystem is ready to be used using jump labels for this. I think I want to like this patch but it's kinda confusing to review. Is there any reasonable way that you can split the core changes from net_cls ones? Thanks. -- tejun