diff options
| author | Kevin Wolf | 2019-05-06 19:18:01 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2019-05-20 17:08:56 +0200 |
| commit | 38475269d4d9efcc5f1a5aae4834d165248ea13d (patch) | |
| tree | 8b882ecc72c392752bff349221e72e97b00f9447 /include | |
| parent | test-block-iothread: Test AioContext propagation through the tree (diff) | |
| download | qemu-38475269d4d9efcc5f1a5aae4834d165248ea13d.tar.gz qemu-38475269d4d9efcc5f1a5aae4834d165248ea13d.tar.xz qemu-38475269d4d9efcc5f1a5aae4834d165248ea13d.zip | |
block: Implement .(can_)set_aio_ctx for BlockBackend
bdrv_try_set_aio_context() currently fails if a BlockBackend is attached
to a node because it doesn't implement the BdrvChildRole callbacks for
AioContext management.
We can allow changing the AioContext of monitor-owned BlockBackends as
long as no device is attached to them.
When setting the AioContext of the root node of a BlockBackend, we now
need to pass blk->root as an ignored child because we don't want the
root node to recursively call back into BlockBackend and execute
blk_do_set_aio_context() a second time.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
