[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 01/10] block: use bdrv_add_before_write_notifier
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PULL 01/10] block: use bdrv_add_before_write_notifier |
Date: |
Fri, 7 Oct 2016 15:42:50 +0200 |
From: Paolo Bonzini <address@hidden>
Register the notifier using the specific API for block devices.
Signed-off-by: Paolo Bonzini <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
block/write-threshold.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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,
--
1.8.3.1
- [Qemu-devel] [PULL 00/10] Block layer patches, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 01/10] block: use bdrv_add_before_write_notifier,
Kevin Wolf <=
- [Qemu-devel] [PULL 04/10] block: Add bdrv_runtime_opts to query-command-line-options, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 05/10] block: Add node name to BLOCK_IO_ERROR event, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 03/10] block: use aio_bh_schedule_oneshot, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 02/10] async: add aio_bh_schedule_oneshot, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 07/10] block: Add qdev ID to DEVICE_TRAY_MOVED, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 08/10] scripts: Allow block module to not define BlockDriver, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 06/10] block-backend: Remember if attached device is non-qdev, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 09/10] module: Don't load the same module if requested multiple times, Kevin Wolf, 2016/10/07
- [Qemu-devel] [PULL 10/10] dmg: Move libbz2 code to dmg-bz2.so, Kevin Wolf, 2016/10/07
- Re: [Qemu-devel] [PULL 00/10] Block layer patches, Peter Maydell, 2016/10/10