History | View | Annotate | Download (5 kB)
Handle BH's queued by AIO completions in qemu_aio_flush()
Without this, the call to qemu_aio_flush during migration doesn'tactually flush all in-flight SCSI IOs.
Signed-off-by: Nolan Leake <nolan <at> sigbus.net>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
fix qemu_aio_flush
qemu_aio_wait by invoking the bh or one of the aio completioncallbacks, could end up submitting new pending aio, breaking theinvariant that qemu_aio_flush returns only when no pending aio isoutstanding (possibly a problem for migration as such)....
AIO deletion race fix
When deleting an fd event there is a chance the object doesn't getdeleted, but only ->deleted set positive and deleted somewhere later.
Now, if we create a handler for the fd again before the actualdeletion occurs, we end up writing data into an object that has...
toplevel: remove error handling from qemu_malloc() callers (Avi Kivity)
Signed-off-by: Avi Kivity <avi@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6531 c046a42c-6fe2-441c-8c8c-71466251a162
Make sure to initialize fd_sets in aio.c
This was spotted by valgrind.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5470 c046a42c-6fe2-441c-8c8c-71466251a162
Refactor AIO to allow multiple AIO implementations
This patch refactors the AIO layer to allow multiple AIO implementations. It'sonly possible because of the recent signalfd() patch.
Right now, the AIO infrastructure is pretty specific to the block raw backend....