block: Add Error to blk_set_aio_context()
Add an Error parameter to blk_set_aio_context() and use
bdrv_child_try_set_aio_context() internally to check whether all
involved nodes can actually support the AioContext switch.
Signed-off-by:
Kevin Wolf <kwolf@redhat.com>
Showing
- block/block-backend.c 16 additions, 10 deletionsblock/block-backend.c
- hw/block/dataplane/virtio-blk.c 9 additions, 3 deletionshw/block/dataplane/virtio-blk.c
- hw/block/dataplane/xen-block.c 4 additions, 2 deletionshw/block/dataplane/xen-block.c
- hw/scsi/virtio-scsi.c 7 additions, 3 deletionshw/scsi/virtio-scsi.c
- include/sysemu/block-backend.h 2 additions, 1 deletioninclude/sysemu/block-backend.h
- tests/test-bdrv-drain.c 4 additions, 4 deletionstests/test-bdrv-drain.c
- tests/test-block-iothread.c 11 additions, 11 deletionstests/test-block-iothread.c
Loading
Please register or sign in to comment