From: Ian Campbell Subject: Re: [Xen-devel] [PATCH] xen_disk: implement BLKIF_OP_FLUSH_DISKCACHE, remove BLKIF_OP_WRITE_BARRIER Date: Wed, 25 Apr 2012 10:02:45 +0100 Message-ID: <1335344565.28015.7.camel@zakaz.uk.xensource.com> References: <1334595957-12552-1-git-send-email-stefano.stabellini@eu.citrix.com> <20120425084524.GA17537@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120425084524.GA17537@lst.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: Christoph Hellwig Cc: "kwolf@redhat.com" , "xen-devel@lists.xensource.com" , "qemu-devel@nongnu.org" , "konrad.wilk@oracle.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, 2012-04-25 at 09:45 +0100, Christoph Hellwig wrote: > > - case BLKIF_OP_WRITE_BARRIER: > > + case BLKIF_OP_FLUSH_DISKCACHE: > > if (!ioreq->req.nr_segments) { > > ioreq->presync = 1; > > return 0; > > } > > - ioreq->presync = ioreq->postsync = 1; > > + ioreq->postsync = 1; > > /* fall through */ > > It might be worth documenting the semantics of BLKIF_OP_FLUSH_DISKCACHE > in a comment here. I haven't found any spec for the xen_disk protocol, The blkif spec was recently much improved, you can find it at http://xenbits.xen.org/docs/unstable/hypercall/include,public,io,blkif.h.html TBH I'm not sure it actually answers your questions wrt BLKIF_OP_FLUSH_DISKCACHE, if not please let us know and we can see about improving it. Ian