Re: softirq question

(no name) ((no email))
Wed, 23 May 2001 10:24:14 +0000


> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/