Message ID | alpine.LFD.2.00.0902260824470.3111@localhost.localdomain (mailing list archive) |
---|---|
State | RFC |
Headers | show |
* Linus Torvalds <torvalds@linux-foundation.org> wrote: > Two choices that I can see: > > - do the ieee1394_init() as a fs_initcall(), earlier > > - move drivers/ieee1394 linking up to before drivers/media > > but I suspect that drivers/media wants to be early, in order to do the > _media_ layer initialization early. > > Does this work? yes, i just tested it and your patch fixes the crash: mercury:~> uname -a Linux mercury 2.6.29-rc6-tip-02011-gb62a1ed-dirty #250 SMP Thu Feb 26 19:00:54 CET 2009 i686 athlon i386 GNU/Linux mercury:~> uptime 19:02:51 up 0 min, 1 user, load average: 3.97, 1.10, 0.37 Tested-by: Ingo Molnar <mingo@elte.hu> Thanks! Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Ingo Molnar wrote: > * Linus Torvalds <torvalds@linux-foundation.org> wrote: >> Two choices that I can see: >> >> - do the ieee1394_init() as a fs_initcall(), earlier >> >> - move drivers/ieee1394 linking up to before drivers/media >> >> but I suspect that drivers/media wants to be early, in order to do the >> _media_ layer initialization early. The former seems the better choice to me. Changing the linking order would just break the next time around. >> Does this work? > > yes, i just tested it and your patch fixes the crash: > > mercury:~> uname -a > Linux mercury 2.6.29-rc6-tip-02011-gb62a1ed-dirty #250 SMP Thu > Feb 26 19:00:54 CET 2009 i686 athlon i386 GNU/Linux > mercury:~> uptime > 19:02:51 up 0 min, 1 user, load average: 3.97, 1.10, 0.37 > > Tested-by: Ingo Molnar <mingo@elte.hu> Thanks guys. I'm very sorry that this basic issue escaped my attention. It's the first time that a 1394 driver lives outside drivers/ieee1394/Makefile. (Also shows that even very long exposure in linux-next does not catch runtime issues like this one.) Stefan Richter -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/ieee1394/ieee1394_core.c b/drivers/ieee1394/ieee1394_core.c index 1028e72..8723380 100644 --- a/drivers/ieee1394/ieee1394_core.c +++ b/drivers/ieee1394/ieee1394_core.c @@ -1275,7 +1275,7 @@ static void __exit ieee1394_cleanup(void) unregister_chrdev_region(IEEE1394_CORE_DEV, 256); } -module_init(ieee1394_init); +fs_initcall(ieee1394_init); module_exit(ieee1394_cleanup); /* Exported symbols */