Skip to contentSkip to conversation

Add coroutine_fn to bdrv_check_co_entry

PATCH Applied [email protected] 2 participants 2 messages Apr 1, 2019 – Apr 3, 2019

lore
Share & tools
lore
#0 lore raw

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.

---
 block.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block.c +1 -1
index 0a93ee9ac8..776c43f177 100644
@@ -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
#1 lore raw
Quoted 9 lines · On Mon, Apr 01, 2019 at 12:30:51PM +0300, [email protected] wrote:

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.

---
 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