Re: [libvirt] [PATCH RFC 29/51] qemu: Allocate diskPriv->blockjob only when there's a blockjob

2019-01-07 Thread Ján Tomko
On Wed, Dec 12, 2018 at 06:08:45PM +0100, Peter Krempa wrote: Rather than storing the presence of the blockjob in a flag we can bind together the lifecycle of the job with the lifecycle of the object which is tracking the data for it. Signed-off-by: Peter Krempa --- src/qemu/qemu_blockjob.c |

[libvirt] [PATCH RFC 29/51] qemu: Allocate diskPriv->blockjob only when there's a blockjob

2018-12-12 Thread Peter Krempa
Rather than storing the presence of the blockjob in a flag we can bind together the lifecycle of the job with the lifecycle of the object which is tracking the data for it. Signed-off-by: Peter Krempa --- src/qemu/qemu_blockjob.c | 76 +---