Messages in this thread | | | Date | Thu, 09 Nov 2000 10:21:38 -0800 | From | George Anzinger <> | Subject | Re: test9: running tasks not in run-queue |
| |
"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/
| |