nbd: mark more coroutine_fns
commit0c43c6fc896ff0894627b9464c3db94a33c8c7ac
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Apr 2022 17:57:49 +0000 (14 19:57 +0200)
committerEric Blake <eblake@redhat.com>
Tue, 26 Apr 2022 18:16:35 +0000 (26 13:16 -0500)
tree720ecdbb54cf1c12062876dee52c5bb72ad534a5
parent8846b7d1c137ba261b2300b20e94ae360d88a538
nbd: mark more coroutine_fns

Several coroutine functions in block/nbd.c are not marked as such.  This
patch adds a few more markers; it is not exhaustive, but it focuses
especially on:

- places that wake other coroutines, because aio_co_wake() has very
different semantics inside a coroutine (queuing after yield vs. entering
immediately);

- functions with _co_ in their names, to avoid confusion

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220414175756.671165-3-pbonzini@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@openvz.org>
Reviewed-by: Lukas Straub <lukasstraub2@web.de>
Signed-off-by: Eric Blake <eblake@redhat.com>
block/nbd.c