]> git.proxmox.com Git - mirror_qemu.git/commit
block-backend: allow blk_prw from coroutine context
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Feb 2017 13:52:20 +0000 (14:52 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 21 Feb 2017 11:14:07 +0000 (11:14 +0000)
commit35f106e68464d4ed9f2059a93f5c2ecd0750c05b
treeb841c1abf0c79614ae64307f939435eb8f3d33f4
parent0c330a734b51c177ab8488932ac3b0c4d63a718a
block-backend: allow blk_prw from coroutine context

qcow2_create2 calls this.  Do not run a nested event loop, as that
breaks when aio_co_wake tries to queue the coroutine on the co_queue_wakeup
list of the currently running one.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 20170213135235.12274-4-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/block-backend.c