block: Add AioContextNotifier functions to BB
commit2019ba0a0197afc85495546f337345a7150710fc
authorMax Reitz <mreitz@redhat.com>
Tue, 18 Nov 2014 11:21:15 +0000 (18 12:21 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 Dec 2014 09:31:12 +0000 (10 10:31 +0100)
treefab452326e9ac2627561c1a3ef20b5db1fc19f84
parent2bb0dce76245762dbc0a8fe12516faa127a64e5b
block: Add AioContextNotifier functions to BB

Because all BlockDriverStates behind a single BlockBackend reside in a
single AioContext, it is fine to just pass these functions
(blk_add_aio_context_notifier() and blk_remove_aio_context_notifier())
through to the root BlockDriverState.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1416309679-333-3-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c
include/sysemu/block-backend.h