public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* The O(1) scheduler breaks UML
@ 2002-01-14  2:39 Jeff Dike
  2002-01-14  2:55 ` Davide Libenzi
  2002-01-14  9:40 ` Ingo Molnar
  0 siblings, 2 replies; 7+ messages in thread
From: Jeff Dike @ 2002-01-14  2:39 UTC (permalink / raw)
  To: mingo; +Cc: linux-kernel

The new scheduler holds IRQs off across the call to context_switch.  UML's
_switch_to expects them to be enabled when it is called, and things go
badly wrong when they are not.

Because UML has a host process for each UML thread, SIGIO needs to be 
forwarded from one process to the next during a context switch.  A SIGIO 
arriving during the window between the disabling of IRQs and forwarding of 
IRQs to the next process will be trapped on the process going out of
context.  This happens fairly regularly and causes hangs because some process
is waiting for disk IO which never arrives because the process that was notified
of the completion is switched out.

So, is it possible to enable IRQs across the call to _switch_to?

				Jeff


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-01-14 19:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-14  2:39 The O(1) scheduler breaks UML Jeff Dike
2002-01-14  2:55 ` Davide Libenzi
2002-01-14  4:49   ` Jeff Dike
2002-01-14  9:55   ` Ingo Molnar
2002-01-14 15:38     ` Davide Libenzi
2002-01-14  9:40 ` Ingo Molnar
2002-01-14 19:14   ` Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox