On Mon, Mar 12, 2012 at 11:05 PM, Paolo Bonzini <pbonz...@redhat.com> wrote: > Il 12/03/2012 15:53, zwu.ker...@gmail.com ha scritto: >> - qemu_aio_flush(); >> + QTAILQ_FOREACH(bs, &bdrv_states, list) { >> + do { >> + qemu_co_queue_restart_all(&bs->throttled_reqs); >> + qemu_aio_flush(); >> + } while (!qemu_co_queue_empty(&bs->throttled_reqs)); >> + } > > Even this is not enough. Block device 2 could start a throttled request I think that this should be allowed here. It does not affect the final result. All throttled requests for all disks are drained. > on block device 1. I'm sending a related series, I'll include yours in > mine. > > Paolo
-- Regards, Zhi Yong Wu