]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
block: Add bdrv_co_enter()/leave()
authorKevin Wolf <kwolf@redhat.com>
Mon, 5 Oct 2020 15:58:53 +0000 (17:58 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 9 Oct 2020 05:08:20 +0000 (07:08 +0200)
commite336fd4c4b2fa04e5d6c7f8ee524bfd2d9e9e8f1
tree5e067cd1cc99e744e2eea9eac4cdb58904e564aa
parent26b0b698c00bd9176f86c539aeb680481fa19473
block: Add bdrv_co_enter()/leave()

Add a pair of functions to temporarily move the current coroutine to the
AioContext of a given BlockDriverState.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20201005155855.256490-13-kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
block.c
include/block/block.h