diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2019-10-22 14:18:00 +0300 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2019-10-28 11:22:31 +0100 |
commit | 3816edd2cb8391a782bde365d7f14705fdb2834d (patch) | |
tree | fbcb378357f4625b0dd9f119dc15a3c5e74b743b /po | |
parent | ecc47cb47ccd3da0ad1375d2696997192f953ca3 (diff) | |
download | qemu-3816edd2cb8391a782bde365d7f14705fdb2834d.zip qemu-3816edd2cb8391a782bde365d7f14705fdb2834d.tar.gz qemu-3816edd2cb8391a782bde365d7f14705fdb2834d.tar.bz2 |
block/block-copy: allocate buffer in block_copy_with_bounce_buffer
Move bounce_buffer allocation block_copy_with_bounce_buffer. This
commit simplifies further work on implementing copying by larger chunks
(of different size) and further asynchronous handling of block_copy
iterations (with help of block/aio_task API).
Allocation works fast, a lot faster than disk io, so it's not a problem
that we now allocate/free bounce_buffer more times. And we anyway will
have to allocate several bounce_buffers for parallel execution of loop
iterations in future.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20191022111805.3432-2-vsementsov@virtuozzo.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions