From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 24 Jan 2003 21:04:34 +0100 From: Jens Axboe Subject: Re: 2.5.59-mm5 Message-ID: <20030124200434.GD889@suse.de> References: <3E31765F.4010900@cyberone.com.au> <200301241934.h0OJYf0V005773@turing-police.cc.vt.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200301241934.h0OJYf0V005773@turing-police.cc.vt.edu> Sender: owner-linux-mm@kvack.org Return-Path: To: Valdis.Kletnieks@vt.edu, Nick Piggin Cc: Giuliano Pochini , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-kernel@alex.org.uk, Alex Tomas , Andrew Morton , Oliver Xymoron List-ID: On Fri, Jan 24 2003, Valdis.Kletnieks@vt.edu wrote: > On Sat, 25 Jan 2003 04:22:39 +1100, Nick Piggin said: > > 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/