Received: from eggs.gnu.org ([2001:4830:134:3::10]:43339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b1EbM-0002eV-2e for qemu-devel@nongnu.org; Fri, 13 May 2016 11:02:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b1EbG-0001gn-5s for qemu-devel@nongnu.org; Fri, 13 May 2016 11:02:03 -0400 References: <1462354765-14037-1-git-send-email-kwolf@redhat.com> <1462354765-14037-10-git-send-email-kwolf@redhat.com> From: Max Reitz Message-ID: <95ab2cdf-fabf-6ba8-0c85-93185bb817c5@redhat.com> Date: Fri, 13 May 2016 17:01:46 +0200 MIME-Version: 1.0 In-Reply-To: <1462354765-14037-10-git-send-email-kwolf@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="eShKrJsq1AaAAE1swBOXVVKRlb0fRhmFH" Subject: Re: [Qemu-devel] [PATCH 09/14] backup: Pack Notifier within BackupBlockJob List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-block@nongnu.org Cc: jcody@redhat.com, jsnow@redhat.com, berto@igalia.com, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --eShKrJsq1AaAAE1swBOXVVKRlb0fRhmFH From: Max Reitz To: Kevin Wolf , qemu-block@nongnu.org Cc: jcody@redhat.com, jsnow@redhat.com, berto@igalia.com, qemu-devel@nongnu.org Message-ID: <95ab2cdf-fabf-6ba8-0c85-93185bb817c5@redhat.com> Subject: Re: [PATCH 09/14] backup: Pack Notifier within BackupBlockJob References: <1462354765-14037-1-git-send-email-kwolf@redhat.com> <1462354765-14037-10-git-send-email-kwolf@redhat.com> In-Reply-To: <1462354765-14037-10-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 04.05.2016 11:39, Kevin Wolf wrote: > From: John Snow >=20 > Instead of relying on peeking at bs->job, we want to explicitly get > a reference to the job that was involved in this notifier callback. >=20 > Pack the Notifier inside of the BackupBlockJob so we can use > container_of to get a reference back to the BackupBlockJob object. >=20 > This cuts out one more case where we rely unnecessarily on bs->job. >=20 > Suggested-by: Paolo Bonzini > Signed-off-by: John Snow > Signed-off-by: Kevin Wolf > --- > block/backup.c | 19 ++++++++++--------- > 1 file changed, 10 insertions(+), 9 deletions(-) Reviewed-by: Max Reitz --eShKrJsq1AaAAE1swBOXVVKRlb0fRhmFH 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 iQEcBAEBCAAGBQJXNexaAAoJEDuxQgLoOKyt0DgH/0QqtQ2pDcA2Pjs0sxUzmDgz +s/x0PTWoNeBITzOMrF98z0vBV5RYqWKFcgxY8Ry/3AD+svN8d+lYwVxre6lIHYJ o2wfcRUOMylRSAbjv2eE8SdbSjHb0lEiUlYWIWx22eGj8w+M2Ngvkd87CqbZln7A G72/VmJXcSe5rnTt21UvAfO5r7OD8yg7hQNrd8rsbDF59OTFE5zb+gKBDcGUsyFs HoxB9l3Ccxh9Zmrn4q7R9Tuh7qBhX1J0QS2lv/Przy1lSfl3RhpNGDURU7P9JJjX PcFGoUVRaH5rWgjkw5Y/QDAFxn9prVR6Bw67Iw5fZPlTsi8KLycGfAzTlqJvuiI= =JxmR -----END PGP SIGNATURE----- --eShKrJsq1AaAAE1swBOXVVKRlb0fRhmFH--