From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0FOA-0008Cq-Ax for qemu-devel@nongnu.org; Wed, 12 Nov 2008 08:04:06 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0FO5-0008Ag-QE for qemu-devel@nongnu.org; Wed, 12 Nov 2008 08:04:05 -0500 Received: from [199.232.76.173] (port=43343 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0FO5-0008Ac-Mc for qemu-devel@nongnu.org; Wed, 12 Nov 2008 08:04:01 -0500 Received: from mx2.redhat.com ([66.187.237.31]:41586) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L0FO4-0002qL-F3 for qemu-devel@nongnu.org; Wed, 12 Nov 2008 08:04:01 -0500 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 mACD3wpf026287 for ; Wed, 12 Nov 2008 08:03:58 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mACD3vAu003963 for ; Wed, 12 Nov 2008 08:03:57 -0500 Received: from zweiblum.travel.kraxel.org (vpn-4-131.str.redhat.com [10.32.4.131]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mACD3upx001763 for ; Wed, 12 Nov 2008 08:03:56 -0500 Message-ID: <491AD436.40908@redhat.com> Date: Wed, 12 Nov 2008 14:03:50 +0100 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [patch] Fix block I/O hang. References: <4919B46C.3040804@redhat.com> <4919B79A.5030402@codemonkey.ws> In-Reply-To: <4919B79A.5030402@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1 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 Anthony Liguori wrote: > Gerd Hoffmann wrote: >> Hi, >> >> $subject says all. >> >> please apply, >> Gerd > Under what circumstances? posix_aio_read() is only invoked from a > select callback. This means there should be data available to be read. Well, there are *two* select loops: main_loop_wait() and qemu_aio_wait(). Calling sync block i/o functions from a i/o handler causes the two select loops run nested => boom. cheers, Gerd