From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0HAw-0003aj-OZ for qemu-devel@nongnu.org; Wed, 12 Nov 2008 09:58:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0HAv-0003Zv-4Q for qemu-devel@nongnu.org; Wed, 12 Nov 2008 09:58:34 -0500 Received: from [199.232.76.173] (port=55269 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0HAu-0003Zp-TG for qemu-devel@nongnu.org; Wed, 12 Nov 2008 09:58:32 -0500 Received: from qw-out-1920.google.com ([74.125.92.149]:52382) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L0HAu-0006vc-L4 for qemu-devel@nongnu.org; Wed, 12 Nov 2008 09:58:32 -0500 Received: by qw-out-1920.google.com with SMTP id 5so302514qwc.4 for ; Wed, 12 Nov 2008 06:58:32 -0800 (PST) Message-ID: <491AEF14.4020501@codemonkey.ws> Date: Wed, 12 Nov 2008 08:58:28 -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> <4919C550.5020609@redhat.com> <20081112134902.GA4014@linuxtv.org> In-Reply-To: <20081112134902.GA4014@linuxtv.org> Content-Type: text/plain; charset=UTF-8; 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 Johannes Stezenbach wrote: > Hi, > > On Tue, Nov 11, 2008 at 06:48:00PM +0100, Gerd Hoffmann wrote: > >> Anthony Liguori wrote: >> >>> Under what circumstances? posix_aio_read() is only invoked from a >>> select callback. This means there should be data available to be read. >>> > ... > >> Third, when called from a select callback it shouldn't block indeed. It >> does though for me now and then when booting xen guests (with a big >> stack of xenner patches). Doesn't reproduce reliable though. Sprinkled >> in a printk (with rfd being non-blocking) and got a EAGAIN once, so it >> got called with rfd not having data. >> > > I don't know what kind of fd you're talking about, but the > Linux select man page says: > It's a pipe. The socket issue has bit me a number of times in the past though :-) Regards, Anthony Liguori