qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 1/2] block: add the support to drain throttle


From: Zhi Yong Wu
Subject: Re: [Qemu-devel] [PATCH v3 1/2] block: add the support to drain throttled requests
Date: Mon, 12 Mar 2012 23:25:09 +0800

On Mon, Mar 12, 2012 at 11:05 PM, Paolo Bonzini <address@hidden> wrote:
> Il 12/03/2012 15:53, address@hidden 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]