Re: softirq question

From: Studierende der Universitaet des Saarlandes (masp0008@stud.uni-sb.de)
Date: Wed May 23 2001 - 05:24:14 EST


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



This archive was generated by hypermail 2b29 : Wed May 23 2001 - 21:00:51 EST