All of lore.kernel.org
 help / color / mirror / Atom feed
* softirq question
@ 2001-05-23 10:26 Aviv Greenberg
  2001-05-23  9:39 ` Andi Kleen
  0 siblings, 1 reply; 6+ messages in thread
From: Aviv Greenberg @ 2001-05-23 10:26 UTC (permalink / raw)
  To: 'linux-kernel@vger.kernel.org'

Hi,

Is it possible to enter into sleep mode 
( current->state = !RUNNING && schedule(_timeout))
from a softirq ?

It is not a real hardware interrupt after all, but it still runs in
the context of a running process....

Aviv Greenberg // sizeof(void)
http://www.voltaire.com



^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: softirq question
@ 2001-05-23 10:24 Studierende der Universitaet des Saarlandes
  0 siblings, 0 replies; 6+ messages in thread
From: Studierende der Universitaet des Saarlandes @ 2001-05-23 10:24 UTC (permalink / raw)
  To: avivg; +Cc: linux-kernel

> Is it possible to enter into sleep mode 
> ( current->state = !RUNNING && schedule(_timeout)) 
> from a softirq ? 

calling schedule() causes a panic() in schedule(), and even an innocent

	current->state = TASK_RUNNING;

from an softirq causes runqueue corruptions.[you must use
wake_up_process() since it's not guaranteed that 'current' is actually
in the runqueue.]

--
	Manfred

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

end of thread, other threads:[~2001-12-27  8:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <PPENJLMFIMGBGDDHEPBBEEJFCAAA.ashokr2@attbi.com>
2001-12-22 11:00 ` softirq question Ingo Molnar
2001-12-24 19:08   ` george anzinger
2001-12-27 10:36     ` Ingo Molnar
2001-05-23 10:26 Aviv Greenberg
2001-05-23  9:39 ` Andi Kleen
  -- strict thread matches above, loose matches on Subject: below --
2001-05-23 10:24 Studierende der Universitaet des Saarlandes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.