Re: [Qemu-devel] [PATCH 05/10] block: add block job transactions

2015-06-30 Thread Stefan Hajnoczi
On Mon, Jun 29, 2015 at 06:38:13PM -0400, John Snow wrote: > On 06/25/2015 08:12 AM, Stefan Hajnoczi wrote: > > +/* The purpose of this is to keep txn alive until all jobs have been added > > */ > > +void block_job_txn_begin(BlockJobTxn *txn) > > +{ > > +block_job_txn_unref(txn); > > +} > > +

Re: [Qemu-devel] [PATCH 05/10] block: add block job transactions

2015-06-29 Thread John Snow
On 06/25/2015 08:12 AM, 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

Re: [Qemu-devel] [PATCH 05/10] block: add block job transactions

2015-06-25 Thread Fam Zheng
On Thu, 06/25 13:12, 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 Rev

[Qemu-devel] [PATCH 05/10] block: add block job transactions

2015-06-25 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 --- blockjob.c| 160 +