Re: disk head scheduling

Stephen C. Tweedie (sct@redhat.com)
Wed, 24 Mar 1999 14:34:02 +0000 (GMT)


Hi,

On Tue, 23 Mar 1999 21:41:56 +0100 (MET), Gerard Roudier
<groudier@club-internet.fr> said:

> A) Linux is doing IOs per block or per page from the kernel and we need
> to coalesce and sort this small virtual IOs somewhere.

> B) The Linux design is, at the moment, to perform this work from
> ll_rw_blk.

> The get_queue() only function looks like some band-aid for IDE to me.
> Since too partial design is bad design I am not going to use this method.

You really have to justify that statement!

All the get_queue() mechanism does is allow a completely general-purpose
IO clustering mechanism to be used at a granularity which suits the
driver concerned. For IDE, that may mean more than one queue per
major. For SCSI, it might actually mean one queue for more than one
major. The same generic IO sorting and clustering works on both,
whatever notion of queue the driver itself happens to desire.

The fact that it works in such a flexible manner seems to me to be an
indication that it is actually doing something right.

--Stephen

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