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

2020-06-16 Thread Denis V. Lunev
On 6/15/20 12:34 PM, Vladimir Sementsov-Ogievskiy wrote: > 15.06.2020 10:47, Vladimir Sementsov-Ogievskiy wrote: >> 11.06.2020 20:11, Denis V. Lunev wrote: >>> From: Vladimir Sementsov-Ogievskiy >>> >>> Currently, aio task pool assumes that there is a main coroutine, which >>> creates tasks and

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

2020-06-15 Thread Vladimir Sementsov-Ogievskiy
15.06.2020 10:47, Vladimir Sementsov-Ogievskiy wrote: 11.06.2020 20:11, Denis V. Lunev wrote: From: 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

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

2020-06-15 Thread Vladimir Sementsov-Ogievskiy
11.06.2020 20:11, Denis V. Lunev wrote: From: 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:

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

2020-06-11 Thread Denis V. Lunev
From: 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 Signed-off-by: