Re: [PATCH] block/aio_task: allow start/wait task from any coroutine

2020-06-11 Thread Vladimir Sementsov-Ogievskiy
11.06.2020 15:31, Denis V. Lunev wrote: On 6/11/20 10:36 AM, Vladimir Sementsov-Ogievskiy wrote: Currently, aio task pool assumes that there is a main coroutine, which creates tasks and wait for them. Let's remove the restriction by using CoQueue. Code becomes clearer, interface more obvious.

Re: [PATCH] block/aio_task: allow start/wait task from any coroutine

2020-06-11 Thread Denis V. Lunev
On 6/11/20 10:36 AM, Vladimir Sementsov-Ogievskiy wrote: > Currently, aio task pool assumes that there is a main coroutine, which > creates tasks and wait for them. Let's remove the restriction by using > CoQueue. Code becomes clearer, interface more obvious. > > Signed-off-by: Vladimir

[PATCH] block/aio_task: allow start/wait task from any coroutine

2020-06-11 Thread Vladimir Sementsov-Ogievskiy
Currently, aio task pool assumes that there is a main coroutine, which creates tasks and wait for them. Let's remove the restriction by using CoQueue. Code becomes clearer, interface more obvious. Signed-off-by: Vladimir Sementsov-Ogievskiy --- Hi! Here is my counter-propasal for "[PATCH 1/2]