Scheduler question

From: DJBARROW@de.ibm.com
Date: Fri Aug 25 2000 - 12:45:21 EST


Hi,
We have noticed that do_bottom_half leaves interrupts disabled on the local
cpu when it exits,
This results in the tq_scheduler task queue sometimes running with
interrupts disabled.
Which has been causing some sad happenings in our code,we were not
expecting this & it
has caused some grief in drivers.

It has been suggested that this is required to prevent infinite recursion
in do_bottom_half,
I have been using this to do things like starting kernel threads it hasn't
crashed yet but
I have a friend whose code did deadlock because of this.

I know I could keep a thread permanently running & wake it up when
neccessary but this is a little wasteful.

Suggestions/Opinions.

D.J. Barrow Linux for S/390 kernel developer
eMail: djbarrow@de.ibm.com,barrow_dj@yahoo.com
Phone: +49-(0)7031-16-2583
IBM Germany Lab, Schönaicherstr. 220, 71032 Böblingen

D.J. Barrow Linux for S/390 kernel developer
eMail: djbarrow@de.ibm.com,barrow_dj@yahoo.com
Phone: +49-(0)7031-16-2583
IBM Germany Lab, Schönaicherstr. 220, 71032 Böblingen

-
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/



This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:16 EST