[lkml]   [2000]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: test9: running tasks not in run-queue
"David S. Miller" wrote:
> Date: Wed, 8 Nov 2000 15:11:49 -0800
> From: Mike Kravetz <>
> 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)"....

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:45    [W:0.173 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site