From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SS6Fs-000762-AK for qemu-devel@nongnu.org; Wed, 09 May 2012 08:44:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SS6Fm-0004hQ-70 for qemu-devel@nongnu.org; Wed, 09 May 2012 08:44:31 -0400 Received: from smtp.citrix.com ([66.165.176.89]:6162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SS6Fm-0004dX-2F for qemu-devel@nongnu.org; Wed, 09 May 2012 08:44:26 -0400 From: Stefano Stabellini Date: Wed, 9 May 2012 13:44:15 +0100 Message-ID: <1336567456-20202-3-git-send-email-stefano.stabellini@eu.citrix.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 1.1 3/4] xen_disk: remove syncwrite option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, Stefano Stabellini This patch removes a dead option. The same can be achieved removing BDRV_O_NOCACHE and BDRV_O_CACHE_WB from the flags passed to bdrv_open. Signed-off-by: Stefano Stabellini --- hw/xen_disk.c | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/hw/xen_disk.c b/hw/xen_disk.c index 22dbd10..49e53b7 100644 --- a/hw/xen_disk.c +++ b/hw/xen_disk.c @@ -48,7 +48,6 @@ /* ------------------------------------------------------------- */ -static int syncwrite = 0; static int batch_maps = 0; static int max_requests = 32; @@ -189,15 +188,10 @@ static int ioreq_parse(struct ioreq *ioreq) ioreq->presync = 1; return 0; } - if (!syncwrite) { - ioreq->presync = ioreq->postsync = 1; - } + ioreq->presync = ioreq->postsync = 1; /* fall through */ case BLKIF_OP_WRITE: ioreq->prot = PROT_READ; /* from memory */ - if (syncwrite) { - ioreq->postsync = 1; - } break; default: xen_be_printf(&blkdev->xendev, 0, "error: unknown operation (%d)\n", -- 1.7.2.5