Message ID | 20201010204106.1368710-2-marcandre.lureau@redhat.com |
---|---|
State | Superseded |
Headers | show |
Series | console: make QMP screendump use coroutine | expand |
Kevin or Stefan, please review. marcandre.lureau@redhat.com writes: > From: Marc-André Lureau <marcandre.lureau@redhat.com> > > 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> > --- > util/qemu-coroutine-lock.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/util/qemu-coroutine-lock.c b/util/qemu-coroutine-lock.c > index 36927b5f88..5816bf8900 100644 > --- a/util/qemu-coroutine-lock.c > +++ b/util/qemu-coroutine-lock.c > @@ -85,15 +85,13 @@ static bool qemu_co_queue_do_restart(CoQueue *queue, bool single) > return true; > } > > -bool coroutine_fn qemu_co_queue_next(CoQueue *queue) > +bool qemu_co_queue_next(CoQueue *queue) > { > - assert(qemu_in_coroutine()); > return qemu_co_queue_do_restart(queue, true); > } > > -void coroutine_fn qemu_co_queue_restart_all(CoQueue *queue) > +void qemu_co_queue_restart_all(CoQueue *queue) > { > - assert(qemu_in_coroutine()); > qemu_co_queue_do_restart(queue, false); > }
Am 10.10.2020 um 22:41 hat marcandre.lureau@redhat.com geschrieben: > From: Marc-André Lureau <marcandre.lureau@redhat.com> > > 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>
diff --git a/util/qemu-coroutine-lock.c b/util/qemu-coroutine-lock.c index 36927b5f88..5816bf8900 100644 --- a/util/qemu-coroutine-lock.c +++ b/util/qemu-coroutine-lock.c @@ -85,15 +85,13 @@ static bool qemu_co_queue_do_restart(CoQueue *queue, bool single) return true; } -bool coroutine_fn qemu_co_queue_next(CoQueue *queue) +bool qemu_co_queue_next(CoQueue *queue) { - assert(qemu_in_coroutine()); return qemu_co_queue_do_restart(queue, true); } -void coroutine_fn qemu_co_queue_restart_all(CoQueue *queue) +void qemu_co_queue_restart_all(CoQueue *queue) { - assert(qemu_in_coroutine()); qemu_co_queue_do_restart(queue, false); }