diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-09-19 18:48:53 +0200 |
---|---|---|
committer | SeokYeon Hwang <syeon.hwang@samsung.com> | 2013-11-07 13:48:37 +0900 |
commit | ed9e40cafb6d477e24eccc44bfdb3b02f50451b4 (patch) | |
tree | c1a34ac3b880b0e6c488a469364d0bb92a02083f | |
parent | ca3135790860e1e0a224ef64cbbe08bfcc32ea05 (diff) | |
download | qemu-ed9e40cafb6d477e24eccc44bfdb3b02f50451b4.tar.gz qemu-ed9e40cafb6d477e24eccc44bfdb3b02f50451b4.tar.bz2 qemu-ed9e40cafb6d477e24eccc44bfdb3b02f50451b4.zip |
blockdev: do not default cache.no-flush to true
That's why all my VMs were so fast lately. :)
This changed in 1.6.0 by mistake in patch 29c4e2b (blockdev: Split up
'cache' option, 2013-07-18).
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 1df6fa4bc6754a170cf511a78e2e6fef84eb5228)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
-rw-r--r-- | blockdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blockdev.c b/blockdev.c index c7eff3da0b..51f727c598 100644 --- a/blockdev.c +++ b/blockdev.c @@ -465,7 +465,7 @@ static DriveInfo *blockdev_init(QemuOpts *all_opts, if (qemu_opt_get_bool(opts, "cache.direct", false)) { bdrv_flags |= BDRV_O_NOCACHE; } - if (qemu_opt_get_bool(opts, "cache.no-flush", true)) { + if (qemu_opt_get_bool(opts, "cache.no-flush", false)) { bdrv_flags |= BDRV_O_NO_FLUSH; } |