From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yl0pP-0000ZS-TC for qemu-devel@nongnu.org; Wed, 22 Apr 2015 16:01:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yl0pO-0008Nk-UL for qemu-devel@nongnu.org; Wed, 22 Apr 2015 16:00:59 -0400 Message-ID: <5537FDCB.7030306@redhat.com> Date: Wed, 22 Apr 2015 14:00:11 -0600 From: Eric Blake MIME-Version: 1.0 References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sNP0F5Vu8Uh061pnkIvI7D9riFKPbjSGO" Subject: Re: [Qemu-devel] [PATCH 1/8] block: keep a list of block jobs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia , qemu-devel@nongnu.org Cc: Kevin Wolf , qemu-block@nongnu.org, Stefan Hajnoczi , Max Reitz This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --sNP0F5Vu8Uh061pnkIvI7D9riFKPbjSGO Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 04/16/2015 09:12 AM, Alberto Garcia wrote: > The current way to obtain the list of existing block jobs is to > iterate over all root nodes and check which ones own a job. >=20 > Since we want to be able to support block jobs in other nodes as well, > this patch keeps a list of jobs that is updated everytime one is s/everytime/every time/ > created or destroyed. >=20 > This also updates qmp_query_block_jobs() to use this new list. >=20 > Signed-off-by: Alberto Garcia > Reviewed-by: Max Reitz > --- > blockdev.c | 19 ++++++++----------- > blockjob.c | 13 +++++++++++++ > include/block/blockjob.h | 14 ++++++++++++++ > 3 files changed, 35 insertions(+), 11 deletions(-) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --sNP0F5Vu8Uh061pnkIvI7D9riFKPbjSGO 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/ iQEcBAEBCAAGBQJVN/3LAAoJEKeha0olJ0Nqwk0IAInCAt6VmmssTnlRzvXftGIU MNnk8F7c7rK+HaiWf0ysA6MsCUzfb6ng0GO0pUDpQrK2kNPJa1aCEpQFLDd52fmW O4l12WqThFwNanr3mT8FYLoWHZaQtk+Z4cFsgjyvzv3f8deJqH3hHNWie0kMVOhJ fkGQbypluv29E5tjPsJ78Dq4z7fjqpSYeNsBMeIth2OW26bF9jULE5hNKeJ7bol+ IhuKndjdeLWr5TfddY08jJsv5N10OqxLaMoVhy8FykYUE7nUd9qKhvK6AIkMNiBS QLVObWtvp9yZUx4A98vCWKIym4I/87wxWWM0s3l8CshYxuXHyLVLm3CNMeaz10s= =A1Mx -----END PGP SIGNATURE----- --sNP0F5Vu8Uh061pnkIvI7D9riFKPbjSGO--