[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] thread-pool: Notify AIO context upon completion
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH] thread-pool: Notify AIO context upon completion |
Date: |
Thu, 2 Jul 2015 09:11:58 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 |
On 02/07/2015 08:33, Fam Zheng wrote:
> bdrv_flush() uses a loop like
>
> while (rwco.ret == NOT_DONE) {
> aio_poll(aio_context, true);
> }
>
> to wait for thread pool, which may not get notified about the scheduled
> BH right away, if there is no new event that wakes up a blocking
> qemu_poll_ns().
That translates to "the dispatching optimization does not work". :) I
do not think that is the problem.
Paolo