Received: from eggs.gnu.org ([2001:4830:134:3::10]:35849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brVwU-0004RI-Kq for qemu-devel@nongnu.org; Tue, 04 Oct 2016 16:03:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brVwT-0004TY-HV for qemu-devel@nongnu.org; Tue, 04 Oct 2016 16:03:58 -0400 References: <1475570983-16182-1-git-send-email-pbonzini@redhat.com> From: Eric Blake Message-ID: <60a4eb7d-e3fc-5498-5322-4320c0cf7e34@redhat.com> Date: Tue, 4 Oct 2016 15:03:50 -0500 MIME-Version: 1.0 In-Reply-To: <1475570983-16182-1-git-send-email-pbonzini@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UBMW4ICUjTS7t9XS725Exh0qT1HtkvpPq" Subject: Re: [Qemu-devel] [PATCH] block: use bdrv_add_before_write_notifier List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --UBMW4ICUjTS7t9XS725Exh0qT1HtkvpPq From: Eric Blake To: Paolo Bonzini , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org Message-ID: <60a4eb7d-e3fc-5498-5322-4320c0cf7e34@redhat.com> Subject: Re: [Qemu-devel] [PATCH] block: use bdrv_add_before_write_notifier References: <1475570983-16182-1-git-send-email-pbonzini@redhat.com> In-Reply-To: <1475570983-16182-1-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/04/2016 03:49 AM, Paolo Bonzini wrote: > Register the notifier using the specific API for block devices. >=20 > Signed-off-by: Paolo Bonzini > --- > block/write-threshold.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Reviewed-by: Eric Blake >=20 > diff --git a/block/write-threshold.c b/block/write-threshold.c > index cc2ca71..0bd1a01 100644 > --- a/block/write-threshold.c > +++ b/block/write-threshold.c > @@ -76,8 +76,7 @@ static int coroutine_fn before_write_notify(NotifierW= ithReturn *notifier, > static void write_threshold_register_notifier(BlockDriverState *bs) > { > bs->write_threshold_notifier.notify =3D before_write_notify; > - notifier_with_return_list_add(&bs->before_write_notifiers, > - &bs->write_threshold_notifier); > + bdrv_add_before_write_notifier(bs, &bs->write_threshold_notifier);= > } > =20 > static void write_threshold_update(BlockDriverState *bs, >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --UBMW4ICUjTS7t9XS725Exh0qT1HtkvpPq 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/ iQEcBAEBCAAGBQJX9AsmAAoJEKeha0olJ0Nq3IAH/2wEWhl47COHzmXpIbNRpn70 qRHrdRhbLSmDt8996cCaTRjR75/jN2yrVSTBVKgng/4OlxiPm+8nnS4Ld3Ts4s2c vb2bQte350R64r42tTVTYOt+iNqGAnl9jNap2yNLqAzNdTXDhk5vcjO/QmnuTl6t TRMICW4fZ16xNES9sL8ZpfC4JodxO1DcL85MLzCnhpFiH2QRXPotesSoDmNdDv0t j2DrL9J7t2V2ruiK5u/E03B/vvmsN374aJ/CjO6QtkOo+ra8QT3SZRWVhTtRD2/F gVnI1Atw6EPRTQUgFdnXVvWIJHxDgjpb4X3P03O8wc7r/QNBg+KyLZI1SeFzmGM= =YP4p -----END PGP SIGNATURE----- --UBMW4ICUjTS7t9XS725Exh0qT1HtkvpPq--