From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaUSz-0005sm-KB for qemu-devel@nongnu.org; Fri, 11 Sep 2015 15:58:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaUSv-0005Yz-Du for qemu-devel@nongnu.org; Fri, 11 Sep 2015 15:58:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaUSv-0005Yv-8J for qemu-devel@nongnu.org; Fri, 11 Sep 2015 15:58:33 -0400 References: <1441611277-24596-1-git-send-email-famz@redhat.com> <1441611277-24596-10-git-send-email-famz@redhat.com> From: Eric Blake Message-ID: <55F3325C.4090802@redhat.com> Date: Fri, 11 Sep 2015 13:58:20 -0600 MIME-Version: 1.0 In-Reply-To: <1441611277-24596-10-git-send-email-famz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="a1qo6lPsL2sTnFlQlPbcqs747X29U1xI6" Subject: Re: [Qemu-devel] [PATCH v5 09/14] block: Add block job transactions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: Kevin Wolf , Jeff Cody , Max Reitz , vsementsov@parallels.com, stefanha@redhat.com, John Snow This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --a1qo6lPsL2sTnFlQlPbcqs747X29U1xI6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/07/2015 01:34 AM, 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.= >=20 > Signed-off-by: Stefan Hajnoczi > [Rewrite the implementation which is now contained in block_job_complet= ed. > --Fam] > Signed-off-by: Fam Zheng > --- > blockjob.c | 134 +++++++++++++++++++++++++++++++++++++++= +++++++- > include/block/block.h | 1 + > include/block/blockjob.h | 38 ++++++++++++++ > 3 files changed, 171 insertions(+), 2 deletions(-) > +static void block_job_completed_txn_success(BlockJob *job) > +{ > + AioContext *ctx; > + BlockJobTxn *txn =3D job->txn; > + BlockJob *other_job, *next; > + /* > + * Successful completion, see if there are other running jobs in t= his > + * txn. > + **/ Unusual **/ --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --a1qo6lPsL2sTnFlQlPbcqs747X29U1xI6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJV8zJcAAoJEKeha0olJ0NqakkIAK/G6eIg8HcbMh0IssOLeAuT 3bU+7VKbQds+9QcgWbSiBYJXjcHc7gPZ5nGpr6sfeNGnExZ+K4LBsPwj5GpsnF7u DxSqr/iHYwM1BozxTDBsbDCkJinHSVVYoiWkn+4UAxg9OfHFtponS2tLbeWBOfMP VEx5nlsDvDUMEvBk9Ht6ajbhN6lRQGn70xJ3+ebewX60y3svjOASiRbWbAOB5LJe cUgNsfsfWhE78l/7gZtpSzu/QCP/Rgjb+vN+V6SA+nbiWhMeEs8f2yn31kwY6HVQ OsXIHfZTwWnDAmbyrlE/9W1BhB7zHbccOuRpoUKSPaJIi8X6lJm7aZFYkXn7H9M= =Pse+ -----END PGP SIGNATURE----- --a1qo6lPsL2sTnFlQlPbcqs747X29U1xI6--