block: Emulate bdrv_ioctl with bdrv_aio_ioctl and track both
commit5c5ae76acb024f05b8f021e9f1e10a0299328bdd
authorFam Zheng <famz@redhat.com>
Mon, 9 Nov 2015 10:16:51 +0000 (9 18:16 +0800)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 Nov 2015 15:22:43 +0000 (12 16:22 +0100)
tree81a83d45b9c9fac6d53da44dcc90e6d78440e0fa
parent8b45f6878d291646cadc4786ae807e6a42c188b4
block: Emulate bdrv_ioctl with bdrv_aio_ioctl and track both

Currently all drivers that support .bdrv_aio_ioctl also implement
.bdrv_ioctl redundantly.  To track ioctl requests in block layer it is
easier if we unify the two paths, because we'll need to run it in a
coroutine, as required by tracked_request_begin. While we're at it, use
.bdrv_aio_ioctl plus aio_poll() to emulate bdrv_ioctl().

Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1447064214-29930-7-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/io.c