From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH v2 06/10] cgroup: Assign subsystem IDs during compile time Date: Thu, 6 Sep 2012 15:32:38 -0700 Message-ID: <20120906223238.GR29092@google.com> References: <1345816904-21745-1-git-send-email-wagi@monom.org> <1345816904-21745-7-git-send-email-wagi@monom.org> <20120824233810.GT21325@google.com> <50390743.2090203@monom.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "David S. Miller" , Andrew Morton , Eric Dumazet , Gao feng , Glauber Costa , Jamal Hadi Salim , John Fastabend , Kamezawa Hiroyuki , Li Zefan , Neil Horman To: Daniel Wagner Return-path: Content-Disposition: inline In-Reply-To: <50390743.2090203-kQCPcA+X3s7YtjvyW6yDsg@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org Hello, Daniel. On Sat, Aug 25, 2012 at 07:11:31PM +0200, Daniel Wagner wrote: > On 25.08.2012 01:38, Tejun Heo wrote: > >>task_cls_classid() and task_netprioidx() (when built as > >>module) are protected by a jump label and therefore we can > >>simply replace the subsystem index lookup with the enum. > > > >Can we put these in a separate patch? ie. The first patch makes all > >subsys IDs constant and then patches to simplify users. > > Wouldn't this break bisection? I merged this step so that all steps > in this series are able to compile and run. I don't see why it should but maybe I'm missing something. If so, please enlighten me. > >>+#define IS_SUBSYS_ENABLED(option) IS_MODULE(option) > >>+#include > >>+#undef IS_SUBSYS_ENABLED > >>+ > > > >Why do we need to segregate in-kernel and modular ones at all? What's > >wrong with just defining them in one go? > > I have done that but the result was a panic. There seems some code > which expects this ordering. Let me dig into this and fix it. Yes, please. > >Hmm... patch sequence looks odd to me. If you first make all IDs > >constant, you can first remove module specific ones and then later add > >jump labels as separate patches. Wouldn't that be simpler? > > As said above, I tried to keep all steps usable so bisection would > work. I think your steps would lead to non working versions of the > kernel. Hmmm... Yes, it should be bisectable but again I don't see why being biesectable interferes with the patch ordering here. Thanks. -- tejun