]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: Remove BDRV_O_COPY_ON_READ for bs->file
authorKevin Wolf <kwolf@redhat.com>
Fri, 11 Apr 2014 19:36:45 +0000 (21:36 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 Apr 2014 09:05:00 +0000 (11:05 +0200)
commit5669b44de5b3b607a3a4749e0c8c5ddfd723e76b
tree40acd9208df98e76a8f7d09c776f2603f244c1a9
parent317fc44ef2bfa87e96adecf035ed136ed9d78c8f
block: Remove BDRV_O_COPY_ON_READ for bs->file

Copy on Read makes sense on the format level where backing files are
implemented, but it's not required on the protocol level. While it
shouldn't actively break anything to have COR enabled on both layers,
needless serialisation and allocation checks may impact performance.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block.c