[Qemu-devel] [PATCH 07/18] throttle-groups: only start one coroutine from drained_begin

2017-05-11 Thread Paolo Bonzini
Starting all waiting coroutines from bdrv_drain_all is unnecessary; throttle_group_co_io_limits_intercept calls schedule_next_request as soon as the coroutine restarts, which in turn will restart the next request if possible. If we only start the first request and let the coroutines dance from the

[Qemu-devel] [PATCH 07/18] throttle-groups: only start one coroutine from drained_begin

2017-05-25 Thread Paolo Bonzini
Starting all waiting coroutines from bdrv_drain_all is unnecessary; throttle_group_co_io_limits_intercept calls schedule_next_request as soon as the coroutine restarts, which in turn will restart the next request if possible. If we only start the first request and let the coroutines dance from the

Re: [Qemu-devel] [PATCH 07/18] throttle-groups: only start one coroutine from drained_begin

2017-05-16 Thread Stefan Hajnoczi
On Thu, May 11, 2017 at 04:41:57PM +0200, Paolo Bonzini wrote: > Starting all waiting coroutines from bdrv_drain_all is unnecessary; > throttle_group_co_io_limits_intercept calls schedule_next_request as > soon as the coroutine restarts, which in turn will restart the next > request if possible. >