Commit b681a1c7 authored by Committed by Stefan HajnocziBrowse files
block: Repair the throttling code.
The throttling code was segfaulting since commit 02ffb504 because some qemu_co_queue_next caller does not run in a coroutine. qemu_co_queue_do_restart assume that the caller is a coroutinne. As suggested by Stefan fix this by entering the coroutine directly. Also make sure like suggested that qemu_co_queue_next() and qemu_co_queue_restart_all() can be called only in coroutines. Signed-off-by: Benoit Canet <email@example.com> Signed-off-by: Stefan Hajnoczi <firstname.lastname@example.org>