OSDN Git Service

virtio-blk: Use blk_aio_ioctl
authorFam Zheng <famz@redhat.com>
Tue, 20 Jan 2015 03:28:47 +0000 (11:28 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 23 Jan 2015 17:17:05 +0000 (18:17 +0100)
commit1dc936aa84b300940b2797c391cc3ca519bc78ce
tree5659e24ad49a726dc65ff65c051c48723f2bd81d
parent75344fa4c5d6a3ebe2dec2d87cbea8524f5d0f42
virtio-blk: Use blk_aio_ioctl

Use the asynchronous interface of ioctl. This will not make the VM
unresponsive if the ioctl takes a long time.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/virtio-blk.c