Re: test9: running tasks not in run-queue

From: George Anzinger (george@mvista.com)
Date: Thu Nov 09 2000 - 13:21:38 EST


"David S. Miller" wrote:
>
> Date: Wed, 8 Nov 2000 15:11:49 -0800
> From: Mike Kravetz <mkravetz@sequent.com>
>
> The following code in __wake_up_common() is then
> executed:
>
> if (best_exclusive)
> best_exclusive->state = TASK_RUNNING;
> wq_write_unlock_irqrestore(&q->lock, flags);
>
> test10 fixes this error, now it sets TASK_RUNNING and
> adds the task back to the runqueue all under the runqueue
> lock.

In our preemptable kernel work we often put (or leave) tasks on the run
queue that are not in state TASK_RUNNING and want to treat them as if
they are in state TASK_RUNNING. We thus changed the test in schedule()
to "task_on_runqueue(prev)"....

George
-
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 : Wed Nov 15 2000 - 21:00:15 EST