]> git.proxmox.com Git - mirror_qemu.git/blobdiff - util/qemu-coroutine-sleep.c
block: document semantics of bdrv_co_preadv|pwritev
[mirror_qemu.git] / util / qemu-coroutine-sleep.c
index 25de3ed3dd3de6d3d03cd65d6f8e6de16dea8458..9c5655041be2c1316f15994be04ff32fe522fae1 100644 (file)
@@ -25,7 +25,7 @@ static void co_sleep_cb(void *opaque)
 {
     CoSleepCB *sleep_cb = opaque;
 
-    qemu_coroutine_enter(sleep_cb->co);
+    aio_co_wake(sleep_cb->co);
 }
 
 void coroutine_fn co_aio_sleep_ns(AioContext *ctx, QEMUClockType type,