Re: [PATCH v4 01/32] co-queue: drop extra coroutine_fn marks

2021-06-10 Thread Vladimir Sementsov-Ogievskiy
10.06.2021 20:22, Eric Blake wrote: On Thu, Jun 10, 2021 at 01:07:31PM +0300, Vladimir Sementsov-Ogievskiy wrote: qemu_co_queue_next() and qemu_co_queue_restart_all() just call aio_co_wake() which works well in non-coroutine context. So these functions can be called from non-coroutine context as

Re: [PATCH v4 01/32] co-queue: drop extra coroutine_fn marks

2021-06-10 Thread Eric Blake
On Thu, Jun 10, 2021 at 01:07:31PM +0300, Vladimir Sementsov-Ogievskiy wrote: > qemu_co_queue_next() and qemu_co_queue_restart_all() just call > aio_co_wake() which works well in non-coroutine context. So these > functions can be called from non-coroutine context as well. And > actually qemu_co_que

[PATCH v4 01/32] co-queue: drop extra coroutine_fn marks

2021-06-10 Thread Vladimir Sementsov-Ogievskiy
qemu_co_queue_next() and qemu_co_queue_restart_all() just call aio_co_wake() which works well in non-coroutine context. So these functions can be called from non-coroutine context as well. And actually qemu_co_queue_restart_all() is called from nbd_cancel_in_flight(), which is called from non-corou