]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
block/qcow2: refactor qcow2_co_preadv_part
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Mon, 16 Sep 2019 17:53:22 +0000 (20:53 +0300)
committerMax Reitz <mreitz@redhat.com>
Thu, 10 Oct 2019 08:56:17 +0000 (10:56 +0200)
commit88f468e54696cd9ffc28ecf96f18f04125402541
tree6c460d5526009f18fb4a8f214f5a5fe298496463
parent6e9b225f737d53afae8160d73da72ee8f38eb1a6
block/qcow2: refactor qcow2_co_preadv_part

Further patch will run partial requests of iterations of
qcow2_co_preadv in parallel for performance reasons. To prepare for
this, separate part which may be parallelized into separate function
(qcow2_co_preadv_task).

While being here, also separate encrypted clusters reading to own
function, like it is done for compressed reading.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190916175324.18478-4-vsementsov@virtuozzo.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2.c