Re: [Qemu-devel] [PATCH v4 09/14] block: add block job transactions

2015-09-06 Thread Fam Zheng
On Mon, 08/03 20:06, Max Reitz wrote: > > s/who/which/ OK. > > >+ */ > >+return; > >+} > >+txn->aborting = true; > >+/* We are the first failed job. Cancel other jobs. */ > >+QLIST_FOREACH(other_job, &txn->jobs, txn_list) { > >+ctx = bdrv_get_aio_context(

Re: [Qemu-devel] [PATCH v4 09/14] block: add block job transactions

2015-08-03 Thread Max Reitz
On 30.07.2015 08:39, Fam Zheng 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 [Rewrite the imple

[Qemu-devel] [PATCH v4 09/14] block: add block job transactions

2015-07-29 Thread Fam Zheng
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 [Rewrite the implementation which is now contained in bloc