From: Christoph Hellwig Subject: Re: [PATCH, RFC] virtio_blk: add cache flush command Date: Mon, 18 May 2009 14:03:36 +0200 Message-ID: <20090518120336.GB11112@lst.de> References: <20090511083908.GB20082@lst.de> <4A083B7C.1000703@codemonkey.ws> <20090511154046.GA4226@lst.de> <4A08482E.30100@redhat.com> <20090511162810.GA6027@lst.de> <4A085721.2050005@redhat.com> <4A0864CE.10505@codemonkey.ws> <4A0867B8.2090601@redhat.com> <4A086E72.5060302@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , Christoph Hellwig , Rusty Russell , kvm@vger.kernel.org To: Anthony Liguori Return-path: Received: from verein.lst.de ([213.95.11.210]:36340 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752020AbZERMEB (ORCPT ); Mon, 18 May 2009 08:04:01 -0400 Content-Disposition: inline In-Reply-To: <4A086E72.5060302@codemonkey.ws> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, May 11, 2009 at 01:29:06PM -0500, Anthony Liguori wrote: > >It don't think we realistically can. > > Maybe two fds? One open in O_SYNC and one not. Is such a thing sane? O_SYNC and O_DIRECT currently behave exactly in the same way. In none of the filesystem I've looked at there is an explicit cache flush, but all send down a barrier which gives you an implicit cache flush with the way barriers are implemented.