]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/qcow2.c
qcow2: Make cache=writethrough default
[mirror_qemu.git] / block / qcow2.c
index 20c114b13968d77ab99c02db5b0073bbf7ce4dd9..9a7c666ee735deaf68e9bae579b67bf0f4aa7030 100644 (file)
@@ -145,14 +145,6 @@ static int qcow_open(BlockDriverState *bs, const char *filename, int flags)
     QCowHeader header;
     uint64_t ext_end;
 
-    /* Performance is terrible right now with cache=writethrough due mainly
-     * to reference count updates.  If the user does not explicitly specify
-     * a caching type, force to writeback caching.
-     */
-    if ((flags & BDRV_O_CACHE_DEF)) {
-        flags |= BDRV_O_CACHE_WB;
-        flags &= ~BDRV_O_CACHE_DEF;
-    }
     ret = bdrv_file_open(&s->hd, filename, flags);
     if (ret < 0)
         return ret;