]> git.proxmox.com Git - mirror_qemu.git/commit - block/block-backend.c
block: Add Error to blk_set_aio_context()
authorKevin Wolf <kwolf@redhat.com>
Thu, 2 May 2019 09:10:59 +0000 (11:10 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 4 Jun 2019 13:22:22 +0000 (15:22 +0200)
commit97896a4887a0a29c3314c5f0e9a82e269a6401fc
treef770e5ca839f84b478fe475c177587a3383c2ed0
parent45e92a9011bff4f6660dae1e011083c5790d121b
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>
block/block-backend.c
hw/block/dataplane/virtio-blk.c
hw/block/dataplane/xen-block.c
hw/scsi/virtio-scsi.c
include/sysemu/block-backend.h
tests/test-bdrv-drain.c
tests/test-block-iothread.c