lkml.org 
[lkml]   [2000]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Weirdness in block device queues.

> > This brings me to another point. We probably want some generic
> > interfaces in ll_rw_blk to unplug individual queues, where you can either
> > specify either the actual queue a kdev_t. Some of the places, (such as
> > __wait_on_buffer()) it might make more sense to unplug just the queue
> > related to the buffer in question rather than just unplug everything by
> > running tq_disk. On single-disk systems there wouldn't be any appreciable
> > difference, but if you had a lot of disks, it would probably work out to be
> > more efficient. Something to think about....
>
> request_queue_t *q = blk_get_queue(dev);
> generic_unplug_device(q);

?? I doesn't seem very different from the current (2.4t7)

static void generic_unplug_device(void *data){
request_queue_t *q = (request_queue_t *) data;
unsigned long flags;
spin_lock_irqsave(&io_request_lock, flags);
__generic_unplug_device(q);
spin_unlock_irqrestore(&io_request_lock, flags);
}
...but perhaps I'm blind. Sometimes it happens after 6 hours of windows :(((

Bye.


-
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/

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