It isn't wrong to call schedule() with disabled interrupts - it's a
feature ;-)
Those 10% sleep_on() users that aren't broken use it:
for(;;) {
cli();
if(condition)
break;
sleep_on(&my_wait_queue);
sti();
}
E.g. TIOCMIWAIT in drivers/char/serial.c - a nearly correct sleep_on()
user.
But I doubt that 10% of the sleep_on() users are non-broken...
If you remove sleep_on(), then you can disallow calling schedule() with
disabled local interrupts.
-- Manfred - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/