<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/block/progress_meter.c, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/block/progress_meter.c?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/block/progress_meter.c?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2021-06-25T11:24:24+00:00</updated>
<entry>
<title>progressmeter: protect with a mutex</title>
<updated>2021-06-25T11:24:24+00:00</updated>
<author>
<name>Emanuele Giuseppe Esposito</name>
</author>
<published>2021-06-14T08:11:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a7b4f8fc09ec62d09a11cce72a886c453636c547'/>
<id>urn:sha1:a7b4f8fc09ec62d09a11cce72a886c453636c547</id>
<content type='text'>
Progressmeter is protected by the AioContext mutex, which
is taken by the block jobs and their caller (like blockdev).

We would like to remove the dependency of block layer code on the
AioContext mutex, since most drivers and the core I/O code are already
not relying on it.

Create a new C file to implement the ProgressMeter API, but keep the
struct as public, to avoid forcing allocation on the heap.

Also add a mutex to be able to provide an accurate snapshot of the
progress values to the caller.

Signed-off-by: Emanuele Giuseppe Esposito &lt;eesposit@redhat.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Message-Id: &lt;20210614081130.22134-5-eesposit@redhat.com&gt;
Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
</content>
</entry>
</feed>
