Home
last modified time | relevance | path

Searched hist:e5c67ab5 (Results 1 – 1 of 1) sorted by relevance

/qemu/block/
H A Dblkdebug.ce5c67ab5 Mon Feb 13 13:52:26 GMT 2017 Paolo Bonzini <pbonzini@redhat.com> blkdebug: reschedule coroutine on the AioContext it is running on

Keep the coroutine on the same AioContext. Without this change,
there would be a race between yielding the coroutine and reentering it.
While the race cannot happen now, because the code only runs from a single
AioContext, this will change with multiqueue support in the block layer.

While doing the change, replace custom bottom half with aio_co_schedule.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20170213135235.12274-10-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>