Skip to contentSkip to conversation

Add coroutine_fn to bdrv_check_co_entry

PATCH Stefan Hajnoczi 2 participants 2 messages Apr 1, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 1 line · On Sun, Mar 31, 2019 at 11:39:17AM +0300, [email protected] wrote:

From: nickaleks <[email protected]>

Hi Nikita,
Thanks for the patch! Do you want to adjust your email From field ("nickaleks") so it matches your full name and Signed-off-by ("Nikita Alekseev")?

Stefan

Quoted 25 lines

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
#2 lore raw
Quoted 10 lines · Stefan Hajnoczi
Quoted 1 line · On Sun, Mar 31, 2019 at 11:39:17AM +0300, [email protected] wrote:

From: nickaleks <[email protected]>

Hi Nikita,
Thanks for the patch! Do you want to adjust your email From field ("nickaleks") so it matches your full name and Signed-off-by ("Nikita Alekseev")?

Stefan

Hi, I've sent the same patch again. I have changed the email and added [Qemu-devel] to the subject.