Re: Initcall ordering problem (TTY vs modprobe vs MD5) and cryptomgr problem

Linus Torvalds
2010-08-06T02:27:58Z

On Thu, Aug 5, 2010 at 7:23 PM, David Howells <dhowells@redhat.com> wrote:
>
> I wonder if tty_init() should be moved up, perhaps to immediately after
> chrdev_init().

I do think that sounds sane. The tty layer is kind of special.

I wouldn't call it _after_ chrdev_init(), though, I'd call it _from_
chrdev_init(). Doesn't that make more sense (and keep it out of
fs/dcache.c, which is an odd place to have some tty init).

But maybe there's some reason why it's an initcall. Unlikely.

Linus