All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: qemu-block@nongnu.org
Cc: kwolf@redhat.com, qemu-devel@nongnu.org
Subject: [Qemu-devel] [PULL 01/10] block: use bdrv_add_before_write_notifier
Date: Fri,  7 Oct 2016 15:42:50 +0200	[thread overview]
Message-ID: <1475847779-7336-2-git-send-email-kwolf@redhat.com> (raw)
In-Reply-To: <1475847779-7336-1-git-send-email-kwolf@redhat.com>

From: Paolo Bonzini <pbonzini@redhat.com>

Register the notifier using the specific API for block devices.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
 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

  reply	other threads:[~2016-10-07 13:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-07 13:42 [Qemu-devel] [PULL 00/10] Block layer patches Kevin Wolf
2016-10-07 13:42 ` Kevin Wolf [this message]
2016-10-07 13:42 ` [Qemu-devel] [PULL 02/10] async: add aio_bh_schedule_oneshot Kevin Wolf
2016-10-07 13:42 ` [Qemu-devel] [PULL 03/10] block: use aio_bh_schedule_oneshot Kevin Wolf
2016-10-07 13:42 ` [Qemu-devel] [PULL 04/10] block: Add bdrv_runtime_opts to query-command-line-options Kevin Wolf
2016-10-07 13:42 ` [Qemu-devel] [PULL 05/10] block: Add node name to BLOCK_IO_ERROR event Kevin Wolf
2016-10-07 13:42 ` [Qemu-devel] [PULL 06/10] block-backend: Remember if attached device is non-qdev Kevin Wolf
2016-10-07 13:42 ` [Qemu-devel] [PULL 07/10] block: Add qdev ID to DEVICE_TRAY_MOVED Kevin Wolf
2016-10-07 13:42 ` [Qemu-devel] [PULL 08/10] scripts: Allow block module to not define BlockDriver Kevin Wolf
2016-10-07 13:42 ` [Qemu-devel] [PULL 09/10] module: Don't load the same module if requested multiple times Kevin Wolf
2016-10-07 13:42 ` [Qemu-devel] [PULL 10/10] dmg: Move libbz2 code to dmg-bz2.so Kevin Wolf
2016-10-10  9:39 ` [Qemu-devel] [PULL 00/10] Block layer patches Peter Maydell
2016-10-10 11:37   ` Kevin Wolf
2016-10-10 15:23     ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1475847779-7336-2-git-send-email-kwolf@redhat.com \
    --to=kwolf@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.