From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akyLS-00045O-P4 for qemu-devel@nongnu.org; Tue, 29 Mar 2016 14:26:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akyLR-0002ak-R7 for qemu-devel@nongnu.org; Tue, 29 Mar 2016 14:26:26 -0400 References: <1458675397-24956-1-git-send-email-kwolf@redhat.com> <1458675397-24956-6-git-send-email-kwolf@redhat.com> From: Max Reitz Message-ID: <56FAC8CA.9080906@redhat.com> Date: Tue, 29 Mar 2016 20:26:18 +0200 MIME-Version: 1.0 In-Reply-To: <1458675397-24956-6-git-send-email-kwolf@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8QmvohOScAjWdxUR7VDUKwat14PKq2hwt" Subject: Re: [Qemu-devel] [PATCH 5/9] block: Avoid BDS.blk in bdrv_next() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-block@nongnu.org Cc: qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --8QmvohOScAjWdxUR7VDUKwat14PKq2hwt Content-Type: multipart/mixed; boundary="6A3KqUMpD4XIExneQwkKJmpwRB8L8fMPd" From: Max Reitz To: Kevin Wolf , qemu-block@nongnu.org Cc: qemu-devel@nongnu.org Message-ID: <56FAC8CA.9080906@redhat.com> Subject: Re: [PATCH 5/9] block: Avoid BDS.blk in bdrv_next() References: <1458675397-24956-1-git-send-email-kwolf@redhat.com> <1458675397-24956-6-git-send-email-kwolf@redhat.com> In-Reply-To: <1458675397-24956-6-git-send-email-kwolf@redhat.com> --6A3KqUMpD4XIExneQwkKJmpwRB8L8fMPd Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 22.03.2016 20:36, Kevin Wolf wrote: > We just want to know whether a BDS has at least one BB attached in orde= r > to avoid enumerating it twice. This doesn't depend on the exact BB that= > is attached and is still a valid question when more than one BB can be > attached, so just answer it by checking the parents list. >=20 > Signed-off-by: Kevin Wolf > --- > block.c | 4 ++-- > block/block-backend.c | 17 +++++++++++++++++ > include/sysemu/block-backend.h | 1 + > 3 files changed, 20 insertions(+), 2 deletions(-) Reviewed-by: Max Reitz --6A3KqUMpD4XIExneQwkKJmpwRB8L8fMPd-- --8QmvohOScAjWdxUR7VDUKwat14PKq2hwt 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 iQEcBAEBCAAGBQJW+sjKAAoJEDuxQgLoOKytMfUH+gL+X337RbJDHAO+isBOCTVu KEHfYzhz2SQEQaLtDQg3f+fjuUWRpZsWxVquZ8Owvb3zs3BWrAgW1xAxZfL5sKVP 82/KIFQXFriremn7K+wrqMsSS/2ViEiWYT/bjad2HaSpfX+an3oEUmWRn7xobNkf ymNXp7Xg9ZMY5AMp0IchLmfQcJKIFRJg2LFU+w8FGO2Syb7nM+NOHPiwe2tgEm+z VHjMbgnMkf9CHil4WUtvfY8NMQRDbve1CAKXCYpwyPbiSh7IX10mqwWGQAgYs5fd Kw4ELG2KElhfz4PDFSdnCmrzMH/ICqFqan3mO+CooSPMdzDxtC5tIgZtzYTKCEE= =QBeS -----END PGP SIGNATURE----- --8QmvohOScAjWdxUR7VDUKwat14PKq2hwt--