[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] xen_disk: remove syncwrite option
From: |
Stefano Stabellini |
Subject: |
[Qemu-devel] [PATCH] xen_disk: remove syncwrite option |
Date: |
Tue, 24 Apr 2012 12:22:01 +0100 |
Use the BDRV_O_CACHE_* flags instead.
Signed-off-by: Stefano Stabellini <address@hidden>
---
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 4a6d89c..3e4a47b 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->postsync = 1;
- }
+ 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
- [Qemu-devel] [PATCH] xen_disk: remove syncwrite option,
Stefano Stabellini <=