From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH, RFC] virtio_blk: add cache flush command Date: Mon, 11 May 2009 17:40:46 +0200 Message-ID: <20090511154046.GA4226@lst.de> References: <20090511083908.GB20082@lst.de> <4A083B7C.1000703@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Christoph Hellwig , Rusty Russell , kvm@vger.kernel.org To: Anthony Liguori Return-path: Received: from verein.lst.de ([213.95.11.210]:34260 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753738AbZEKPkx (ORCPT ); Mon, 11 May 2009 11:40:53 -0400 Content-Disposition: inline In-Reply-To: <4A083B7C.1000703@codemonkey.ws> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, May 11, 2009 at 09:51:40AM -0500, Anthony Liguori wrote: > What typically triggers a flush operation? fsync. > I would assume an fsync would, but would a flush happen after every > O_DIRECT write? Right now it doesn't, but it probably should. > If the backend implementation of T_FLUSH is fsync, I would think that > this would result in rather poor performance for O_DIRECT operations in > the guest. Right now it's fsync. By the time I'll submit the backend change it will still be fsync, but at least called from the posix-aio-compat thread pool.