[libvirt] [PATCH RFC 33/51] qemu: domain: Add global table of blockjobs

Ján Tomko jtomko at redhat.com
Mon Jan 7 15:44:41 UTC 2019


On Wed, Dec 12, 2018 at 06:08:49PM +0100, Peter Krempa wrote:
>Block jobs currently belong to disks only so we can look up the block
>job data for them in the corresponding disks. This won't be the case
>when using blockdev as certain jobs don't even correspond to a disk and
>most of them can run on a part of the backing chain.
>
>Add a global table of blockjobs which can be used to look up the data
>for the blockjobs when the job events need to be processed.
>
>The table is a hash table organized by job name and has a reference to
>the job. New and running jobs will later be added to this table.
>Reference counting will allow to reap job state for synchronous callers.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/qemu/qemu_domain.c | 7 +++++++
> src/qemu/qemu_domain.h | 3 +++
> 2 files changed, 10 insertions(+)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190107/a5aec34c/attachment-0001.sig>


More information about the libvir-list mailing list