block: Use blk_co_ioctl() for all BB level ioctls
commit48af776a5b85ad2dc6124d3d0fb210ca6b98d32c
authorKevin Wolf <kwolf@redhat.com>
Thu, 20 Oct 2016 10:56:14 +0000 (20 12:56 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 27 Oct 2016 17:05:22 +0000 (27 19:05 +0200)
tree279aeb52ea00e4446640518e259a6e356d283816
parent7381e95cc2c33b589c94a857dff21bf2016a08b7
block: Use blk_co_ioctl() for all BB level ioctls

All read/write functions already have a single coroutine-based function
on the BlockBackend level through which all requests go (no matter what
API style the external caller used) and which passes the requests down
to the block node level.

This patch exports a bdrv_co_ioctl() function and uses it to extend this
mode of operation to ioctls.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/block-backend.c
block/io.c
include/block/block.h
include/sysemu/block-backend.h