Skip to content
Commit 117bc3fa authored by Peter Lieven's avatar Peter Lieven Committed by Stefan Hajnoczi
Browse files

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: default avatarPeter Lieven <pl@kamp.de>
Message-id: 1464607873-28206-1-git-send-email-pl@kamp.de
Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
parent e3a4f91b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment