]> Git Repo - qemu.git/commit
nbd/server.c: add coroutine_fn annotations
authorEmanuele Giuseppe Esposito <[email protected]>
Mon, 28 Nov 2022 14:23:26 +0000 (09:23 -0500)
committerKevin Wolf <[email protected]>
Thu, 15 Dec 2022 15:07:43 +0000 (16:07 +0100)
commit6f58ac55396bc624c78e73939d5fe6a44a13d150
tree8d4e15e4b0e2c3a0e8d7d90db9392c8e01f48811
parent43a0d4f08b7a7bae90c0753db2b49441ef3e7f6e
nbd/server.c: add coroutine_fn annotations

These functions end up calling bdrv_*() implemented as generated_co_wrapper
functions.
In addition, they also happen to be always called in coroutine context,
meaning all callers are coroutine_fn.
This means that the g_c_w function will enter the qemu_in_coroutine()
case and eventually suspend (or in other words call qemu_coroutine_yield()).
Therefore we can mark such functions coroutine_fn too.

Signed-off-by: Emanuele Giuseppe Esposito <[email protected]>
Reviewed-by: Kevin Wolf <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Message-Id: <20221128142337[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
nbd/server.c
This page took 0.024968 seconds and 4 git commands to generate.