]> git.ipfire.org Git - thirdparty/qemu.git/commit
block: Remove bdrv_set_aio_context()
authorKevin Wolf <kwolf@redhat.com>
Tue, 7 May 2019 16:31:38 +0000 (18:31 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 4 Jun 2019 14:55:58 +0000 (16:55 +0200)
commit42a65f02f9b380bd8074882d5844d4ea033389cc
tree3586ecc8293dcdc4efbb9369829ca8a7c2fd45cc
parent26bf15e441d9d0aa7715bac28ef6a3f25a034df3
block: Remove bdrv_set_aio_context()

All callers of bdrv_set_aio_context() are eliminated now, they have
moved to bdrv_try_set_aio_context() and related safe functions. Remove
bdrv_set_aio_context().

With this, we can now know that the .set_aio_ctx callback must be
present in bdrv_set_aio_context_ignore() because
bdrv_can_set_aio_context() would have returned false previously, so
instead of checking the condition, we can assert it.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
docs/devel/multiple-iothreads.txt
include/block/block.h