]> git.proxmox.com Git - mirror_qemu.git/commit - block/curl.c
curl: convert readv to coroutines
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 May 2017 10:00:58 +0000 (12:00 +0200)
committerJeff Cody <jcody@redhat.com>
Tue, 16 May 2017 14:34:50 +0000 (10:34 -0400)
commit28256d8246f8905cc41cae3db50e5967059d4600
treecffd931e913ade8f2334c32e850a63683c25a7bf
parent2125e5ea6ea8f2c6dd9b06b023200da28fa0305b
curl: convert readv to coroutines

This is pretty simple.  The bottom half goes away because, unlike
bdrv_aio_readv, coroutine-based read can return immediately without
yielding.  However, for simplicity I kept the former bottom half
handler in a separate function.

Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20170515100059.15795-7-pbonzini@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/curl.c