All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen_disk: remove syncwrite option
@ 2012-04-24 11:22 Stefano Stabellini
  2012-04-24 11:37 ` Kevin Wolf
  0 siblings, 1 reply; 5+ messages in thread
From: Stefano Stabellini @ 2012-04-24 11:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, xen-devel, Stefano Stabellini

Use the BDRV_O_CACHE_* flags instead.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-24 12:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-24 11:22 [PATCH] xen_disk: remove syncwrite option Stefano Stabellini
2012-04-24 11:37 ` Kevin Wolf
2012-04-24 11:55   ` Stefano Stabellini
2012-04-24 12:00     ` Kevin Wolf
2012-04-24 12:43       ` Stefano Stabellini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.