Re: Bug in on_each_cpu?

Rusty Russell
2007-03-01T11:42:18Z

On Thu, 2007-03-01 at 03:34 -0800, Zachary Amsden wrote:
> What would be really, really nice would be to statically check all
> callsites that issue irq disables actually keep irqs disabled.
> Presumably, there was a reason they disabled irqs, and re-enabling them
> underneath their noses, even if it is to avoid a race, breaks the logic
> behind that reason.

For the moment, how about a BUG_ON() in on_each_cpu()?

Rusty.