|| ||Kay Sievers <kay-AT-vrfy.org> |
|| ||Linus Torvalds <torvalds-AT-linux-foundation.org> |
|| ||Re: udev breakages - was: Re: Need of an ".async_probe()" type of
callback at driver's core - Was: Re: [PATCH] [media] drxk: change it to use request_firmware_nowait() |
|| ||Thu, 4 Oct 2012 04:39:57 +0200|
|| ||Andy Walls <awalls-AT-md.metrocast.net>,
Greg KH <gregkh-AT-linuxfoundation.org>,
Al Viro <viro-AT-zeniv.linux.org.uk>,
Mauro Carvalho Chehab <mchehab-AT-redhat.com>,
Ming Lei <ming.lei-AT-canonical.com>,
Lennart Poettering <lennart-AT-poettering.net>,
Linux Kernel Mailing List <linux-kernel-AT-vger.kernel.org>,
Kay Sievers <kay-AT-redhat.com>,
Linux Media Mailing List <linux-media-AT-vger.kernel.org>,
Michael Krufky <mkrufky-AT-linuxtv.org>,
Ivan Kalvachev <ikalvachev-AT-gmail.com>|
|| ||Article, Thread
On Thu, Oct 4, 2012 at 12:58 AM, Linus Torvalds
> That said, there's clearly enough variation here that I think that for
> now I won't take the step to disable the udev part. I'll do the patch
> to support "direct filesystem firmware loading" using the udev default
> paths, and that hopefully fixes the particular case people see with
> media modules.
If that approach looks like it works out, please aim for full
in-kernel-*only* support. I would absolutely like to get udev entirely
out of the sick game of firmware loading here. I would welcome if we
are not falling back to the blocking timeouted behaviour again.
The whole story would be contained entirely in the kernel, and we get
rid of the rather fragile "userspace transaction" to execute
module_init(), where the kernel has no idea if userspace is even up to
ever responding to its requests.
There would be no coordination with userspace tools needed, which
sounds like a better fit in the way we develop things with the loosely
coupled kernel <-> udev requirements.
If that works out, it would a bit like devtmpfs which turned out to be
very simple, reliable and absolutely the right thing we could do to
primarily mange /dev content.
The whole dance with the fake firmware struct device, which has a 60
second timeout to wait for userspace, is a long story of weird
failures at various aspects.
It would not only solve the unfortunate modprobe lockup with
init=/bin/sh we see here, also big servers with an insane amount of
devices happen to run into the 60 sec timeout, because udev, which
runs with 4000-8000 threads in parallel handling things like 30.000
disks is not scheduled in time to fulfill network card firmware
requests. It would be nice if we don't have that arbitrary timeout at
Having any timeout at all to answer the simple question if a file
stored in the rootfs exists, should be a hint that there is something
really wrong with the model that stuff is done.
to post comments)