Re: 2.5.59-mm5
From: Jens Axboe <hidden>
Date: 2003-01-24 19:55:56
Also in:
lkml
On Fri, Jan 24 2003, Valdis.Kletnieks@vt.edu wrote:
On Sat, 25 Jan 2003 04:22:39 +1100, Nick Piggin said:quoted
We probably wouldn't want to go that far as you obviously can only merge reads with reads and writes with writes, a flag would be fine. We have to get the basics working first though ;)"obviously can only"? Admittedly, merging reads and writes is a lot trickier, and probably "too hairy to bother", but I'm not aware of a fundamental "cant" that applies across IDE/SCSI/USB/1394/fiberchannel/etc.
Nicks comment refers to the block layer situation, we obviously cannot merge reads and writes there. You would basically have to rewrite the entire request submission structure and break all drivers. And for zero benefit. Face it, it would be stupid to even attempt such a manuever. Since you bring it up, you must know if a device which can take a single command that says "read blocks a to b, and write blocks x to z"? Even if such a thing existed, it would be much better implemented by the driver as pulling more requests of the queue and constructing these weirdo commands itself. Something as ugly as that would never invade the Linux block layer, at least not as long as I have any input on the design of it. So I quite agree with the "obviously". -- Jens Axboe -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/