From 6dec8e7a46ae33062c05abaeba73b47bbe9337b9 Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Fri, 5 Apr 2013 23:30:14 +0000 Subject: [PATCH] Revert "xen: Disable use of O_DIRECT by default as it results in crashes." This reverts commit f3903bbac78a81fcbce1350cdce860764a62783a. --- hw/xen_disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xen_disk.c b/hw/xen_disk.c index 357f9c103..69e1d9d81 100644 --- a/hw/xen_disk.c +++ b/hw/xen_disk.c @@ -744,7 +744,7 @@ static int blk_init(struct XenDevice *xendev) } /* read-only ? */ - qflags = BDRV_O_CACHE_WB | BDRV_O_NATIVE_AIO; + qflags = BDRV_O_NOCACHE | BDRV_O_CACHE_WB | BDRV_O_NATIVE_AIO; if (strcmp(blkdev->mode, "w") == 0) { qflags |= BDRV_O_RDWR; } else { -- 2.39.5