util/async: Add aio_co_reschedule_self()
commit26b0b698c00bd9176f86c539aeb680481fa19473
authorKevin Wolf <kwolf@redhat.com>
Mon, 5 Oct 2020 15:58:52 +0000 (5 17:58 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 9 Oct 2020 05:08:20 +0000 (9 07:08 +0200)
tree4fda52f77177d2997482588790aa2f14ecc0bc1f
parentbb4b9ead95c3aaca84823e28dd9f11ccaa875c14
util/async: Add aio_co_reschedule_self()

Add a function that can be used to move the currently running coroutine
to a different AioContext (and therefore potentially a different
thread).

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20201005155855.256490-12-kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
include/block/aio.h
util/async.c