From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KqUjk-0005s6-Aa for qemu-devel@nongnu.org; Thu, 16 Oct 2008 11:26:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KqUjh-0005rV-Uq for qemu-devel@nongnu.org; Thu, 16 Oct 2008 11:26:03 -0400 Received: from [199.232.76.173] (port=34143 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KqUjh-0005rS-Oe for qemu-devel@nongnu.org; Thu, 16 Oct 2008 11:26:01 -0400 Received: from mx2.redhat.com ([66.187.237.31]:44402) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KqUjh-0008V8-Eb for qemu-devel@nongnu.org; Thu, 16 Oct 2008 11:26:01 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id m9GFQ0Y4016998 for ; Thu, 16 Oct 2008 11:26:00 -0400 Message-ID: <48F75D05.3010601@redhat.com> Date: Thu, 16 Oct 2008 17:25:57 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH]: fix QEMU SCSI lock up References: <20080924225946.GA28588@dmt.cnet> <48DACF6F.40301@us.ibm.com> <48DB4519.6040902@redhat.com> In-Reply-To: <48DB4519.6040902@redhat.com> 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 Cc: Marcelo Tosatti Avi Kivity wrote: > Anthony Liguori wrote: > >>> For reasons that I do not fully understand, bdrv_aio_read() does >>> not return immediately, but instead it calls scsi_read_data() >>> recursively. >>> >> This bothers me. bdrv_aio_read() should never immediately invoke the >> callback to prevent exactly this sort of problem. Perhaps this was a >> bug that has since been fixed? Is this still reproducible? >> > > qcow2 metadata is synchronous, and if the disk is empty, there will be > no data I/O, so bdrv_aio_read() will never be invoked. > > Maybe we should fix this in qcow2 (and the other block formats) by > scheduling a BH. > FWIW, I was told this reproduces on kvm-77 (which has the latest qemu scsi bits). -- error compiling committee.c: too many arguments to function