This series fixes some cases of block drivers calling AIO callbacks too early. It fixes the IDE assertion failure reported by Luiz (in error cases, the DMA status, including acb, could first be reset in the callback and only then be set by the caller, resulting in a dangling acb and wrong status register value).
Kevin Wolf (3): qcow2: Avoid direct AIO callback qcow: Avoid direct AIO callback vdi: Avoid direct AIO callback block/qcow.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- block/qcow2.c | 39 +++++++++++++++++++++++++++++-------- block/vdi.c | 40 +++++++++++++++++++++++++++++++++++--- 3 files changed, 122 insertions(+), 15 deletions(-) -- 1.7.5.2