Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id i1OARvi22145 for ; Tue, 24 Feb 2004 05:27:57 -0500 From: Miquel van Smoorenburg Message-ID: <20040224102714.GC6965@drinkel.cistron.nl> References: <20040223163106.GA22231@cistron.nl> <20040223203731.GA14731@reti> <20040224002116.GA6965@drinkel.cistron.nl> <20040224090356.GD14731@reti> Mime-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20040224090356.GD14731@reti> (from thornber@redhat.com on Tue, Feb 24, 2004 at 10:03:56 +0100) Subject: [linux-lvm] Re: dm, dm_table, request_queue Sender: linux-lvm-admin@redhat.com Errors-To: linux-lvm-admin@redhat.com Reply-To: linux-lvm@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: Date: Tue Feb 24 05:26:03 2004 List-Id: Content-Type: text/plain; charset="us-ascii" To: Joe Thornber Cc: Miquel van Smoorenburg , linux-lvm@sistina.com On Tue, 24 Feb 2004 10:03:56, Joe Thornber wrote: > On Tue, Feb 24, 2004 at 01:21:16AM +0100, Miquel van Smoorenburg wrote: > > All in all, I think that the first approach is the simplest and > > therefor the best. > > > > So how does this look: > > Better wrt keeping mapped_device out of dm-table.c. But it still has > the problem that it treats congestion in any subdevices equally (which > may be a good approximation to start with). The only other solution I see is to 1) add a mechanism for non-blocking generic_make_request() calls (returning EAGAIN) and 2) a way to check for congestion of a block device with (offset, len) parameters. It's hard though. You'd need request reservations on a queue that you can cancel later on if you discover that the whole multi-device request cannot be made. Something like a transaction with multiple requests. But that's currently a bit over my head at least and not 2.6 material either I think. Mike.