qed: introduce qed_aio_start_io and qed_aio_next_io_cb
commitb20123a28b18568cb6a40680e15821fdb171a8bf
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 13 Feb 2017 13:52:27 +0000 (13 14:52 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 21 Feb 2017 11:14:08 +0000 (21 11:14 +0000)
tree0a7338cb9092b81722d670e8ccb51763217a6b36
parente5c67ab552fb056827b5b40356c0ef235e975e7e
qed: introduce qed_aio_start_io and qed_aio_next_io_cb

qed_aio_start_io and qed_aio_next_io will not have to acquire/release
the AioContext, while qed_aio_next_io_cb will.  Split the functionality
and gain a little type-safety in the process.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20170213135235.12274-11-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qed.c