瀏覽代碼

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 <stefano.stabellini@eu.citrix.com>
Stefano Stabellini 13 年之前
父節點
當前提交
ba1dffed63
共有 1 個文件被更改,包括 1 次插入7 次删除
  1. 1 7
      hw/xen_disk.c

+ 1 - 7
hw/xen_disk.c

@@ -48,7 +48,6 @@
 
 
 /* ------------------------------------------------------------- */
 /* ------------------------------------------------------------- */
 
 
-static int syncwrite    = 0;
 static int batch_maps   = 0;
 static int batch_maps   = 0;
 
 
 static int max_requests = 32;
 static int max_requests = 32;
@@ -189,15 +188,10 @@ static int ioreq_parse(struct ioreq *ioreq)
             ioreq->presync = 1;
             ioreq->presync = 1;
             return 0;
             return 0;
         }
         }
-        if (!syncwrite) {
-            ioreq->presync = ioreq->postsync = 1;
-        }
+        ioreq->presync = ioreq->postsync = 1;
         /* fall through */
         /* fall through */
     case BLKIF_OP_WRITE:
     case BLKIF_OP_WRITE:
         ioreq->prot = PROT_READ; /* from memory */
         ioreq->prot = PROT_READ; /* from memory */
-        if (syncwrite) {
-            ioreq->postsync = 1;
-        }
         break;
         break;
     default:
     default:
         xen_be_printf(&blkdev->xendev, 0, "error: unknown operation (%d)\n",
         xen_be_printf(&blkdev->xendev, 0, "error: unknown operation (%d)\n",