block: Support AIO drivers in bdrv_driver_preadv/pwritev()
commit08844473820c93541fc47bdfeae0f2cc88cfab59
authorKevin Wolf <kwolf@redhat.com>
Mon, 25 Apr 2016 12:13:12 +0000 (25 14:13 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 May 2016 13:22:07 +0000 (12 15:22 +0200)
treec545f1a90b3411eacc94aa72bda3a0a0b7d9f67f
parent78a07294d51c6575441ab058ed56de5d364d2833
block: Support AIO drivers in bdrv_driver_preadv/pwritev()

Instead of registering emulation functions as .bdrv_co_writev, just
directly check whether the function is there or not, and use the AIO
interface if it isn't. This makes the read/write functions more
consistent with how things are done in other places (flush, discard,
etc.)

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
block/io.c
trace-events