]> git.proxmox.com Git - mirror_qemu.git/commit - block/block-backend.c
block-backend: implement .change_aio_ctx in child_root
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>
Tue, 25 Oct 2022 08:49:48 +0000 (04:49 -0400)
committerKevin Wolf <kwolf@redhat.com>
Thu, 27 Oct 2022 18:14:11 +0000 (20:14 +0200)
commit33949396216fa16a97f5b33877b50d5830f21aad
tree00acd447370aea32a7474069bc3e6084fa1fc825
parent27633e740e784709f256f6ee70f2dd0b5a87279f
block-backend: implement .change_aio_ctx in child_root

blk_root_change_aio_ctx() is very similar to blk_root_can_set_aio_ctx(),
but implements a new transaction so that if all check pass, the new
transaction's .commit will take care of changing the BlockBackend
AioContext. blk_root_set_aio_ctx_commit() is the same as
blk_root_set_aio_ctx().

Note: bdrv_child_try_change_aio_context() is not called by
anyone at this point.

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20221025084952.2139888-7-eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-backend.c