qcow2-threads: use thread_pool_submit_co
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Mon, 6 May 2019 14:27:36 +0000 (17:27 +0300)
committerMax Reitz <mreitz@redhat.com>
Tue, 28 May 2019 18:30:55 +0000 (20:30 +0200)
commit269062efc8c665707ef88d425d383f4223ce1b11
tree438c8bda15d8326ff0e5f1ae22f1c576ab06d617
parent56e2f1d898849784c25928d49b5143e5e9b71d08
qcow2-threads: use thread_pool_submit_co

Use thread_pool_submit_co, instead of reinventing it here. Note, that
thread_pool_submit_aio() never returns NULL, so checking it was an
extra thing.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190506142741.41731-4-vsementsov@virtuozzo.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2-threads.c