]> git.proxmox.com Git - mirror_qemu.git/commit
block/io: optimize bdrv_co_pwritev for small requests
authorPeter Lieven <pl@kamp.de>
Mon, 30 May 2016 11:31:13 +0000 (13:31 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 7 Jun 2016 13:40:51 +0000 (14:40 +0100)
commit117bc3fa22d359db6c4f0c10f34c8c9e00ed64af
treedaebd01e11358993b50f6bef3406aab2461d2cd0
parente3a4f91b4dda92666379e4865ea9847644f3bc19
block/io: optimize bdrv_co_pwritev for small requests

in a read-modify-write cycle a small request might cause
head and tail to fall into the same aligned block. Currently
QEMU reads the same block twice in this case which is
not necessary.

Signed-off-by: Peter Lieven <pl@kamp.de>
Message-id: 1464607873-28206-1-git-send-email-pl@kamp.de
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/io.c
tests/qemu-iotests/077
tests/qemu-iotests/077.out