Re: [Qemu-devel] [RFC 5/9] block: add block job transactions

2015-06-25 Thread Stefan Hajnoczi
On Wed, Jun 24, 2015 at 08:37:43PM +0200, Max Reitz wrote: On 12.06.2015 12:09, Stefan Hajnoczi wrote: +void block_job_txn_add_job(BlockJobTxn *txn, BlockJob *job) +{ +if (!txn) { +return; +} Do you plan on making use of this case? I'm asking because while I'm usually in

Re: [Qemu-devel] [RFC 5/9] block: add block job transactions

2015-06-24 Thread Max Reitz
On 12.06.2015 12:09, Stefan Hajnoczi wrote: Sometimes block jobs must execute as a transaction group. Finishing jobs wait until all other jobs are ready to complete successfully. Failure or cancellation of one job cancels the other jobs in the group. Signed-off-by: Stefan Hajnoczi

[Qemu-devel] [RFC 5/9] block: add block job transactions

2015-06-12 Thread Stefan Hajnoczi
Sometimes block jobs must execute as a transaction group. Finishing jobs wait until all other jobs are ready to complete successfully. Failure or cancellation of one job cancels the other jobs in the group. Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- blockjob.c| 160