A bug in the queue_task routine...

Prasanna Gokhale (pras@teil.soft.net)
Fri, 4 Jun 1999 14:24:52 +0530 (IST)


The Tasks Queued are scheduled in the reverse order
of queueing. ( The task Queue is being handled as a
Stack ).

The queue_task() routine in include/linux/tqueue.h
queues the task at the head of the list.

The run_queue_task() routine picks up the tasks
from the head of the queue.

So the task that is queued later gets scheduled first.
This is LIFO functionality.
But I think the functionality should be FIFO.

Is this the intended behaviour.?
Any particular reason for this kind of behaviour.?


-Prasanna Gokhale

--------------------------------------------------------------
Prasanna Gokhale Phone No:91-80-8410221/222
Tata Elxsi India Ltd. email : pras@teil.soft.net
Whitefield Road,Hoody, gokhs@hotmail.com
Mahadevapura Post
Bangalore - 560048
India
----------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/