From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiW0f-0003oF-Ba for qemu-devel@nongnu.org; Tue, 01 Sep 2009 12:15:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiW0a-0003i1-PR for qemu-devel@nongnu.org; Tue, 01 Sep 2009 12:15:04 -0400 Received: from [199.232.76.173] (port=49173 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiW0a-0003hh-AC for qemu-devel@nongnu.org; Tue, 01 Sep 2009 12:15:00 -0400 Received: from verein.lst.de ([213.95.11.210]:37912) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1MiW0Z-0006L9-OJ for qemu-devel@nongnu.org; Tue, 01 Sep 2009 12:15:00 -0400 Date: Tue, 1 Sep 2009 18:14:57 +0200 From: Christoph Hellwig Subject: Re: [Qemu-devel] [PATCH 0/3] block: Handle multiple write requests at once Message-ID: <20090901161457.GA23349@lst.de> References: <1251813112-17408-1-git-send-email-kwolf@redhat.com> <20090901155228.GA21781@lst.de> <4A9D46EA.8090606@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A9D46EA.8090606@codemonkey.ws> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Kevin Wolf , Christoph Hellwig , qemu-devel@nongnu.org On Tue, Sep 01, 2009 at 11:08:10AM -0500, Anthony Liguori wrote: > Or introduce a helper layer that coalesces requests that lives outside > of the core block API. I'm not even sure we need much of a helper. It's just a slightly smarter way to build the qiov - instead of submitting the qiov once we're done with one request poke into the next one and add it to if it fits, else submit the request. Also submit it if no more request is pending.