block: use bdrv_add_before_write_notifier
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 4 Oct 2016 08:49:43 +0000 (10:49 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 7 Oct 2016 11:34:07 +0000 (13:34 +0200)
commit818bbc86c9f9c47f67d11c0a068116c4333fd0ba
tree6a03a0be1ed95378de3118a8590e206352e7977b
parente902754e3d0890945ddcc1b33748ed73762ddb8d
block: use bdrv_add_before_write_notifier

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