Add coroutine_fn to bdrv_check_co_entry
PATCH 1/1 Add coroutine_fn to bdrv_check_co_entry
From: Nikita Alekseev <[email protected]>
bdrv_check_co_entry calls bdrv_co_check, which is a coroutine function. Thus, it also needs to be marked as a coroutine.
Signed-off-by Nikita Alekseev <[email protected]>
--- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block.c +1 -1
@@ -4121,7 +4121,7 @@ typedef struct CheckCo {int ret; } CheckCo; -static void bdrv_check_co_entry (void *opaque) +static void coroutine_fn bdrv_check_co_entry(void *opaque) {CheckCo *cco = opaque; cco->ret =bdrv_co_check (cco->bs, cco->res, cco->fix);
Signature · 1 line
2.21.0
Stefan Hajnoczi
AppliedQuoted 9 lines · On Mon, Apr 01, 2019 at 12:30:51PM +0300, [email protected] wrote:
From: Nikita Alekseev <[email protected]>
bdrv_check_co_entrycallsbdrv_co_check, which is a coroutine function. Thus, it also needs to be marked as a coroutine.Signed-off-by Nikita Alekseev <[email protected]>--- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thank you! I prefixed the commit message with "block: ". Most commits have a subsystem prefix to make browsing/searching git log easier. In the future you can add it yourself - look at git log for a file to discover what prefix other people recently used.
Thanks, applied to my block-next tree:
https://github.com/stefanha/qemu/commits/block-next
Stefan