From: Christoph Hellwig Subject: Re: JFYI: ext4 bug triggerable by kvm Date: Tue, 17 Aug 2010 11:04:55 -0400 Message-ID: <20100817150455.GB19231@infradead.org> References: <4C69A0C4.2080102@codemonkey.ws> <20100817090755.GA11110@infradead.org> <4C6A86E4.9080600@codemonkey.ws> <20100817130702.GA16635@infradead.org> <4C6A9AB5.6050404@codemonkey.ws> <20100817142808.GA22412@infradead.org> <4C6A9F4F.8040209@msgid.tls.msk.ru> <4C6AA061.80704@codemonkey.ws> <20100817144651.GB10280@infradead.org> <4C6AA3BB.5020103@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Christoph Hellwig , Anthony Liguori , Michael Tokarev , KVM list , Kevin Wolf To: Avi Kivity Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:43065 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751261Ab0HQPE5 (ORCPT ); Tue, 17 Aug 2010 11:04:57 -0400 Content-Disposition: inline In-Reply-To: <4C6AA3BB.5020103@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Aug 17, 2010 at 05:59:07PM +0300, Avi Kivity wrote: > I agree, but there's another case: tell the guest that we have a > write cache, use O_DSYNC, but only flush the disk cache on guest > flushes. O_DSYNC flushes the disk write cache and any filesystem that supports non-volatile cache. The disk cache is not an abstraction exposed to applications. > I believe this can be approximated by mounting the host filesystem > with barrier=0? Mounting the host filesystem with nobarrier means we will never explicit flush the volatile write cache on the disk.