qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [PATCH v2 06/17] job: Use AIO_WAIT_WHILE() in job_finis


From: Kevin Wolf
Subject: Re: [Qemu-block] [PATCH v2 06/17] job: Use AIO_WAIT_WHILE() in job_finish_sync()
Date: Thu, 13 Sep 2018 19:39:26 +0200
User-agent: Mutt/1.9.1 (2017-09-22)

Am 13.09.2018 um 17:15 hat Paolo Bonzini geschrieben:
> On 13/09/2018 14:52, Kevin Wolf wrote:
> > Also, job_drain() without aio_poll() isn't necessarily enough to make
> > progress on a job, it could depend on bottom halves to be executed.
> 
> This is not changed by the patch though; AIO_WAIT_WHILE does not do the
> bottom halves part anymore, bdrv_drain_poll_top_level does it instead.
> 
> What is it that needs bottom halves to be executed?  Could it delay
> switching the job state until after that?

AIO_WAIT_WHILE() does still execute bottom halves if the condition is
true, which is all that is needed to make progress. It only doesn't
execute them unconditionally any more.

Kevin



reply via email to

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