Quantcast

[qemu-upstream-unstable] xen_disk: remove syncwrite option

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[qemu-upstream-unstable] xen_disk: remove syncwrite option

patchbot
commit b468feb4eba6747cd4b603b85332ffe65d7b8e49
Author: Stefano Stabellini <[hidden email]>
Date:   Fri Apr 13 16:44:54 2012 +0000

    xen_disk: remove syncwrite option
   
    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 <[hidden email]>
---
 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 b4b669b..7a8ea2f 100644
--- a/hw/xen_disk.c
+++ b/hw/xen_disk.c
@@ -45,7 +45,6 @@
 
 /* ------------------------------------------------------------- */
 
-static int syncwrite    = 0;
 static int batch_maps   = 0;
 
 static int max_requests = 32;
@@ -186,15 +185,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",
--
generated by git-patchbot for /home/xen/git/qemu-upstream-unstable.git

_______________________________________________
Xen-changelog mailing list
[hidden email]
http://lists.xensource.com/xen-changelog
Loading...