linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Nicolas Pitre <nico@fluxnic.net>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
	Rob Landley <rob@landley.net>,
	"Bird, Tim" <Tim.Bird@sonymobile.com>,
	Grant Likely <grant.likely@secretlab.ca>,
	Borislav Petkov <bp@alien8.de>,
	"linux-embedded@vger.kernel.org" <linux-embedded@vger.kernel.org>,
	Dirk Behme <dirk.behme@gmail.com>,
	"challinan@gmail.com" <challinan@gmail.com>
Subject: Re: Why is the deferred initcall patch not mainline?
Date: Mon, 27 Oct 2014 22:37:31 +0100	[thread overview]
Message-ID: <20141027213731.GA722@piout.net> (raw)
In-Reply-To: <alpine.LFD.2.11.1410271546010.18007@knanqh.ubzr>

On 27/10/2014 at 16:29:10 -0400, Nicolas Pitre wrote :
> On Fri, 24 Oct 2014, Geert Uytterhoeven wrote:
> 
> > Several patches are linked from
> > http://elinux.org/Deferred_Initcalls
> > 
> > Latest version is
> > http://elinux.org/images/5/51/0001-Port-deferred-initcalls-to-3.10.patch
> 
> In the hope of providing some constructive and concrete feedback to this 
> thread, here's what I have to say about the patch linked above ( I 
> looked only at the latest version):
> 
> - Commented out code is not acceptable for mainline. But everyone knows 
>   that already.
> 
> - Returning a null byte through the /proc file is dubious.
> 
> - The /proc interface is probably not the best. I'd go with an entry in 
>   /sys/kernel instead.
> 
> - If the deferred_initcall section is empty, this could return 1 upfront 
>   and do the free_initmem() earlier as it used to.
> 
> - It was mentioned somewhere that the config system could use a 4th 
>   state in addition to n, m and y.  That would be required before this 
>   goes upstream simply to express all the dependencies between modules.  
>   Right now if a core module is configured with m, then all the 
>   submodules that depend on it inherit the modular-only restriction.  
>   The same would need to be enforced for deferred initcalls.
> 
> - Currently all deferred initcalls are lumped together in a single 
>   section with no regards to the original initcall level. This is likely 
>   to cause trouble if two initcalls are called in a different order than 
>   intended. Nothing prevents that from happening right now.
> 
> This patch is still not generic enough for mainline inclusion IMHO.  It 
> currently falls in the "you better know what you're doing" category and 
> that is possibly good enough for its actual users.  Trying to make this 
> more generic is going to require some more work.  And this would have to 
> come with serious arguments explaining why simply using modules in the 
> first place is not acceptable.
> 

That one is easy, you simply can't compile the network stack as a
module and it is huge.

I completely agree with all your arguments and I'm not sure it is worth
making it foolproof.

-- 
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2014-10-27 21:37 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-18  5:07 Why is the deferred initcall patch not mainline? Dirk Behme
2014-10-18  8:11 ` Bird, Tim
2014-10-18 14:05   ` Alexandre Belloni
2014-10-18 21:09     ` Bird, Tim
2014-10-20  8:32     ` Geert Uytterhoeven
2014-10-19  6:59   ` Dirk Behme
2014-10-21 11:27     ` Alexandre Belloni
2014-10-21 12:52   ` Grant Likely
2014-10-21 12:53     ` Grant Likely
2014-10-21 16:31     ` Nicolas Pitre
2014-10-21 19:37       ` Bird, Tim
2014-10-21 19:58         ` Nicolas Pitre
2014-10-22 10:05           ` Geert Uytterhoeven
2014-10-22 15:05           ` Rob Landley
2014-10-22 15:49             ` Nicolas Pitre
2014-10-23 17:21               ` Bird, Tim
2014-10-23 17:56                 ` Nicolas Pitre
2014-10-23 18:13                   ` Alexandre Belloni
2014-10-23 19:05                     ` Nicolas Pitre
2014-10-23 20:10                       ` Bird, Tim
2014-10-23 20:50                         ` Nicolas Pitre
2014-10-23 22:37                           ` Rob Landley
2014-10-24  0:36                             ` Nicolas Pitre
2014-10-24 19:38                               ` Rob Landley
2014-10-24 20:28                                 ` Geert Uytterhoeven
2014-10-27 20:29                                   ` Nicolas Pitre
2014-10-27 21:37                                     ` Alexandre Belloni [this message]
2014-10-29 23:49                                     ` Tim Bird
2014-10-30  8:51                                       ` Geert Uytterhoeven
2014-11-02  2:37                                         ` Nicolas Pitre
2014-11-02  9:01                                           ` Geert Uytterhoeven
2014-11-02  3:46                                       ` Nicolas Pitre
2014-10-24 21:05                                 ` Nicolas Pitre
2014-10-23 22:01                       ` Rob Landley
2014-10-24  0:31                         ` Nicolas Pitre
2014-10-23 18:37                 ` Rob Landley
2014-10-22  5:31         ` Dirk Behme
2014-10-22  9:49         ` Frank Rowand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141027213731.GA722@piout.net \
    --to=alexandre.belloni@free-electrons.com \
    --cc=Tim.Bird@sonymobile.com \
    --cc=bp@alien8.de \
    --cc=challinan@gmail.com \
    --cc=dirk.behme@gmail.com \
    --cc=geert@linux-m68k.org \
    --cc=grant.likely@secretlab.ca \
    --cc=linux-embedded@vger.kernel.org \
    --cc=nico@fluxnic.net \
    --cc=rob@landley.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).