Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jh5iV-0004SU-P0 for qemu-devel@nongnu.org; Wed, 02 Apr 2008 12:21:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jh5iU-0004Qf-Pn for qemu-devel@nongnu.org; Wed, 02 Apr 2008 12:21:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jh5iU-0004QV-KY for qemu-devel@nongnu.org; Wed, 02 Apr 2008 12:21:38 -0400 Received: from smtp02.citrix.com ([66.165.176.63]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jh5iU-0000TS-7G for qemu-devel@nongnu.org; Wed, 02 Apr 2008 12:21:38 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18419.45671.159207.564940@mariner.uk.xensource.com> Date: Wed, 2 Apr 2008 17:20:55 +0100 Subject: Re: [Qemu-devel] [PATCH] Asynchronous reliable and configurable cache flush In-Reply-To: <20080402152339.GA15460@shareable.org> References: <18418.28291.689482.198484@mariner.uk.xensource.com> <200804011846.25975.paul@codesourcery.com> <20080401184501.GA26813@shareable.org> <200804021326.22707.paul@codesourcery.com> <20080402152339.GA15460@shareable.org> From: Ian Jackson Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: Paul Brook , qemu-devel@nongnu.org Jamie Lokier writes ("Re: [Qemu-devel] [PATCH] Asynchronous reliable and configurable cache flush"): > Paul Brook wrote: > > The cache is dynamically enabled/disabled by the target. This means > > you've got to close and repopen the file every time it changes, > > which is likely to get really hairy. > > Just open two descriptors :-) Doing it with bdrv_aio_flush wasn't too hard, so that's what'll be in my revised patch shortly. (The original patch I'm porting from xen-unstable predates my introduction of bdrv_aio_flush, hence the synchronous flush at that point.) Ian.