Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mh2wC-0001wv-EO for qemu-devel@nongnu.org; Fri, 28 Aug 2009 11:00:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mh2w8-0001u2-UU for qemu-devel@nongnu.org; Fri, 28 Aug 2009 11:00:24 -0400 Received: from [199.232.76.173] (port=56543 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mh2w8-0001tx-NO for qemu-devel@nongnu.org; Fri, 28 Aug 2009 11:00:20 -0400 Received: from verein.lst.de ([213.95.11.210]:39895) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Mh2w7-00079O-Sk for qemu-devel@nongnu.org; Fri, 28 Aug 2009 11:00:20 -0400 Date: Fri, 28 Aug 2009 17:00:08 +0200 From: Christoph Hellwig Message-ID: <20090828150008.GB26688@lst.de> References: <200908280220.n7S2JlN8027935@d03av04.boulder.ibm.com> <4A979033.1030506@mail.berlios.de> <20090828120733.GA6942@kos.to> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090828120733.GA6942@kos.to> Subject: [Qemu-devel] Re: [Qemu-commits] [COMMIT 5c6c3a6] raw-posix: add Linux native AIO support List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Riku Voipio Cc: Anthony Liguori , qemu-devel@nongnu.org, hch@lst.de On Fri, Aug 28, 2009 at 03:07:33PM +0300, Riku Voipio wrote: > use_aio is only ever set in CONFIG_LINUX_AIO protected section, so the #else > section is not needed. Even if that were not the case, falling back to paio_submit() > feels like a better idea than aborting emulation. > > fwiw, s->use_aio is a bad name as well, as it refers to linux aio, while the > file also supports posix aio... Yes. it was more of a quick hack. I just wanted to get a working patch out ASAP as I expect a long discussion about how to correctly set the flag to use and other bikesheds. I can send a version that just stores the bdrv_ flags in the raw state and we can check that.