From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0HAG-0003HL-SO for qemu-devel@nongnu.org; Wed, 12 Nov 2008 09:57:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0HAE-0003Gm-5Y for qemu-devel@nongnu.org; Wed, 12 Nov 2008 09:57:51 -0500 Received: from [199.232.76.173] (port=55262 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0HAD-0003Gj-Vr for qemu-devel@nongnu.org; Wed, 12 Nov 2008 09:57:50 -0500 Received: from qw-out-1920.google.com ([74.125.92.147]:51053) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L0HAD-0006fO-JJ for qemu-devel@nongnu.org; Wed, 12 Nov 2008 09:57:49 -0500 Received: by qw-out-1920.google.com with SMTP id 5so302247qwc.4 for ; Wed, 12 Nov 2008 06:57:48 -0800 (PST) Message-ID: <491AEEE9.5010900@codemonkey.ws> Date: Wed, 12 Nov 2008 08:57:45 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [patch] Fix block I/O hang. References: <4919B46C.3040804@redhat.com> <4919B79A.5030402@codemonkey.ws> <491AD436.40908@redhat.com> In-Reply-To: <491AD436.40908@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 Gerd Hoffmann wrote: > 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. > Yeah, qemu_aio_wait needs to die. Can you resubmit your patch with a better description, and change the read() look in posix_aio_read() to consume as much data as possible before hitting EAGAIN? Regards, Anthony Liguori > cheers, > Gerd > > >