Re: Bug in workqueues [was: Usb devices randomly aren't detectedwith 2.6.28-rc1-git1]

From: Linus Torvalds
Date: Sun Oct 26 2008 - 14:03:06 EST




On Sun, 26 Oct 2008, Rafael J. Wysocki wrote:
> >
> > So apparently flush_workqueue() isn't working.
>
> Let's make that more visible (adding CCs). :-)

Isn't this the same thing that was fixed by commit
4403b406d4369a275d483ece6ddee0088cc0d592: aka 'Revert "Call
init_workqueues before pre smp initcalls."'

The bug was that init_workqueues was called too early, causing it to have
wrong initialization of its CPU masks, which caused various random
problems since it wouldn't run workqueues on anything but the boot CPU.

It is hidden by various config options (eg if you enable suspend, for
example), which is why it probably took some time for people to notice.

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/