yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
218e99
From ae3974ef64713d94dcb2766e3d8f89edc1a01c0c Mon Sep 17 00:00:00 2001
218e99
From: Paolo Bonzini <pbonzini@redhat.com>
218e99
Date: Mon, 23 Sep 2013 17:08:01 +0200
218e99
Subject: [PATCH 03/29] blockdev: do not default cache.no-flush to true
218e99
218e99
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
218e99
Message-id: <1379956082-3646-2-git-send-email-pbonzini@redhat.com>
218e99
Patchwork-id: 54491
218e99
O-Subject: [RHEL 7.0 qemu-kvm PATCH 1/2] blockdev: do not default cache.no-flush to true
218e99
Bugzilla: 1009993
218e99
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
218e99
RH-Acked-by: Fam Zheng <famz@redhat.com>
218e99
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
218e99
218e99
That's why all my VMs were so fast lately. :)
218e99
218e99
This changed in 1.6.0 by mistake in patch 29c4e2b (blockdev: Split up
218e99
'cache' option, 2013-07-18).
218e99
218e99
Cc: qemu-stable@nongnu.org
218e99
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
218e99
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
218e99
(cherry picked from commit 1df6fa4bc6754a170cf511a78e2e6fef84eb5228)
218e99
---
218e99
 blockdev.c | 2 +-
218e99
 1 file changed, 1 insertion(+), 1 deletion(-)
218e99
218e99
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
218e99
---
218e99
 blockdev.c |    2 +-
218e99
 1 files changed, 1 insertions(+), 1 deletions(-)
218e99
218e99
diff --git a/blockdev.c b/blockdev.c
218e99
index 8ffed03..073f553 100644
218e99
--- a/blockdev.c
218e99
+++ b/blockdev.c
218e99
@@ -459,7 +459,7 @@ static DriveInfo *blockdev_init(QemuOpts *all_opts,
218e99
     if (qemu_opt_get_bool(opts, "cache.direct", false)) {
218e99
         bdrv_flags |= BDRV_O_NOCACHE;
218e99
     }
218e99
-    if (qemu_opt_get_bool(opts, "cache.no-flush", true)) {
218e99
+    if (qemu_opt_get_bool(opts, "cache.no-flush", false)) {
218e99
         bdrv_flags |= BDRV_O_NO_FLUSH;
218e99
     }
218e99
 
218e99
-- 
218e99
1.7.1
218e99