From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kvxr6-00038p-3F for qemu-devel@nongnu.org; Fri, 31 Oct 2008 13:32:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kvxr4-00037z-5l for qemu-devel@nongnu.org; Fri, 31 Oct 2008 13:32:15 -0400 Received: from [199.232.76.173] (port=45389 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kvxr4-00037v-1r for qemu-devel@nongnu.org; Fri, 31 Oct 2008 13:32:14 -0400 Received: from yw-out-1718.google.com ([74.125.46.156]:35109) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kvxr3-0006bh-Nx for qemu-devel@nongnu.org; Fri, 31 Oct 2008 13:32:13 -0400 Received: by yw-out-1718.google.com with SMTP id 6so550011ywa.82 for ; Fri, 31 Oct 2008 10:32:09 -0700 (PDT) Message-ID: <490B4115.5040806@codemonkey.ws> Date: Fri, 31 Oct 2008 12:32:05 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] fix bdrv_aio_read API breakage in qcow2 References: <20080829135249.GI24884@duo.random> <20080901104356.GD25764@duo.random> <20080901105314.GE25764@duo.random> <20081022141459.GA26426@duo.random> In-Reply-To: <20081022141459.GA26426@duo.random> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Andrea Arcangeli wrote: > From: Andrea Arcangeli > > I noticed the qemu_aio_flush was doing nothing at all. And a flood of > cmd_writeb commands leading to a noop-invocation of qemu_aio_flush > were executed. > > In short all 'memset;goto redo' places must be fixed to use the bh and > not to call the callback in the context of bdrv_aio_read or the > bdrv_aio_read model falls apart. Reading from qcow2 holes is possible > with phyisical readahead (kind of breada in linux buffer cache). > > This is needed at least for scsi, ide is lucky (or it has been > band-aided against this API breakage by fixing the symptom and not the > real bug). > > Same bug exists in qcow of course, can be fixed later as it's less > urgent. > > Signed-off-by: Andrea Arcangeli > -- > Applied. Thanks. Regards, Anthony Liguori