[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [Qemu-devel] [PATCH] block: use bdrv_add_before_write_n
From: |
Eric Blake |
Subject: |
Re: [Qemu-block] [Qemu-devel] [PATCH] block: use bdrv_add_before_write_notifier |
Date: |
Tue, 4 Oct 2016 15:03:50 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
On 10/04/2016 03:49 AM, Paolo Bonzini wrote:
> Register the notifier using the specific API for block devices.
>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
> block/write-threshold.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Reviewed-by: Eric Blake <address@hidden>
>
> 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(NotifierWithReturn *notifier,
> static void write_threshold_register_notifier(BlockDriverState *bs)
> {
> bs->write_threshold_notifier.notify = 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);
> }
>
> static void write_threshold_update(BlockDriverState *bs,
>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature