[PATCH v2 00/10] qemu: add option to process offloaded legacy blockjob event ealier

Peter Krempa pkrempa at redhat.com
Fri Dec 4 15:52:06 UTC 2020


On Fri, Dec 04, 2020 at 18:44:00 +0300, Nikolay Shirokovskiy wrote:
> On 04.12.2020 18:11, Peter Krempa wrote:
> > On Fri, Nov 13, 2020 at 09:53:28 +0300, Nikolay Shirokovskiy wrote:

[...]

> Ok. By the way what about the issue described in 
> 
> [PATCH v2 09/10] qemu: fix race on legacy block completion and quering stats
> 
> Are modern blockjobs have similar?

Modern blockjobs are started with '"auto-dismiss": false' so if you get
to the monitor before the thread completing the blockjob finishes it,
qemu still reports the status for the job.

The completion is done inside a 'MODIFY' job lock, so other thread won't
be able to get to the monitor in the time between the job is dismissed
in qemu and the XML/definition is updated.




More information about the libvir-list mailing list