coroutine: let CoQueue wake up outside a coroutine
commite18d9a9687ff0c30b70ee0a694d9fcf9333cd844
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 27 Oct 2020 13:36:00 +0000 (27 17:36 +0400)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 4 Nov 2020 07:02:24 +0000 (4 08:02 +0100)
tree3422b02107a062294abb37484f978852dbb9609c
parent3d6e32347a3b57dac7f469a07c5f520e69bd070a
coroutine: let CoQueue wake up outside a coroutine

The assert() was added in commit b681a1c73e15 ("block: Repair the
throttling code."), when the qemu_co_queue_do_restart() function
required to be running in a coroutine. It was later made unnecessary in
commit a9d9235567e7 ("coroutine-lock: reschedule coroutine on the
AioContext it was running on").

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20201027133602.3038018-2-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
util/qemu-coroutine-lock.c