Re: [PATCH] io stalls

Andrea Arcangeli
2003-06-12T01:23:19Z

On Thu, Jun 12, 2003 at 03:29:51AM +0200, Andrea Arcangeli wrote:
> static void get_request_wait_wakeup(request_queue_t *q, int rw)
> {
> /*
> * avoid losing an unplug if a second __get_request_wait did the
> * generic_unplug_device while our __get_request_wait was
> * running
> * w/o the queue_lock held and w/ our request out of the queue.
> */
> if (waitqueue_active(&q->wait_for_requests))
> run_task_queue(&tq_disk);

btw, that was the old version, Chris did it right
s/run_task_queue(&tq_disk)/__generic_unplug_device(q)/

Andrea