[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v3 1/4] block: introduce aio task pool
From: |
Max Reitz |
Subject: |
Re: [Qemu-block] [PATCH v3 1/4] block: introduce aio task pool |
Date: |
Thu, 15 Aug 2019 15:41:27 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 15.08.19 14:10, Vladimir Sementsov-Ogievskiy wrote:
> Common interface for aio task loops. To be used for improving
> performance of synchronous io loops in qcow2, block-stream,
> copy-on-read, and may be other places.
>
> Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
> ---
> include/block/aio_task.h | 54 +++++++++++++++++
> block/aio_task.c | 124 +++++++++++++++++++++++++++++++++++++++
> block/Makefile.objs | 2 +
> 3 files changed, 180 insertions(+)
> create mode 100644 include/block/aio_task.h
> create mode 100644 block/aio_task.c
>
> diff --git a/include/block/aio_task.h b/include/block/aio_task.h
> new file mode 100644
> index 0000000000..58b4d99e59
> --- /dev/null
> +++ b/include/block/aio_task.h
[...]
> +AioTaskPool *aio_task_pool_new(int max_busy_tasks);
Because aio_task_pool_wait_one() asserts that it runs in the same
coroutine as aio_task_pool_new(), this should be a coroutine_fn as well.
O:-)
But I don’t want to be responsible for breaking your “1” key (assuming
you have the exclamation mark there):
Reviewed-by: Max Reitz <address@hidden>
signature.asc
Description: OpenPGP digital signature
- [Qemu-block] [PATCH v3 0/4] qcow2: async handling of fragmented io, Vladimir Sementsov-Ogievskiy, 2019/08/15
- [Qemu-block] [PATCH v3 2/4] block/qcow2: refactor qcow2_co_preadv_part, Vladimir Sementsov-Ogievskiy, 2019/08/15
- [Qemu-block] [PATCH v3 4/4] block/qcow2: introduce parallel subrequest handling in read and write, Vladimir Sementsov-Ogievskiy, 2019/08/15
- [Qemu-block] [PATCH v3 1/4] block: introduce aio task pool, Vladimir Sementsov-Ogievskiy, 2019/08/15
- Re: [Qemu-block] [PATCH v3 1/4] block: introduce aio task pool,
Max Reitz <=
- [Qemu-block] [PATCH v3 3/4] block/qcow2: refactor qcow2_co_pwritev_part, Vladimir Sementsov-Ogievskiy, 2019/08/15
- Re: [Qemu-block] [PATCH v3 0/4] qcow2: async handling of fragmented io, Max Reitz, 2019/08/15
- Re: [Qemu-block] [PATCH v3 0/4] qcow2: async handling of fragmented io, Max Reitz, 2019/08/15