From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJRDO-000578-8c for qemu-devel@nongnu.org; Wed, 03 Oct 2012 11:50:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJRDI-0002jl-6l for qemu-devel@nongnu.org; Wed, 03 Oct 2012 11:50:26 -0400 Received: from mail-da0-f45.google.com ([209.85.210.45]:50178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJRDH-0002ij-UT for qemu-devel@nongnu.org; Wed, 03 Oct 2012 11:50:20 -0400 Received: by dadn15 with SMTP id n15so2481968dad.4 for ; Wed, 03 Oct 2012 08:50:18 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <506C5EB0.50508@redhat.com> Date: Wed, 03 Oct 2012 17:50:08 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20120924091008.GJ18470@in.ibm.com> <20120924091340.GN18470@in.ibm.com> In-Reply-To: <20120924091340.GN18470@in.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] O_DIRECT on glusterfs (was Re: [PATCH v9 4/4] block: Support GlusterFS as a QEMU block backend) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: bharata@linux.vnet.ibm.com Cc: Kevin Wolf , Anthony Liguori , Anand Avati , Vijay Bellur , Stefan Hajnoczi , Harsh Bora , Amar Tumballi , qemu-devel@nongnu.org, "Richard W.M. Jones" , Blue Swirl , Avi Kivity , Daniel Veillard Il 24/09/2012 11:13, Bharata B Rao ha scritto: > + > + if ((bdrv_flags & BDRV_O_NOCACHE)) { > + open_flags |= O_DIRECT; > + } > + If I understand correctly what I was told, this prevents the brick server from using its own buffer cache. This is quite different from what we do for example over NFS (where the host does no caching, but nothing prevents it on the remote server). I think these 3 lines should be removed. We're bypassing the host buffer cache just by virtue of using a userspace driver, and that's what cache=none cares about. Paolo