commit | 771b64daf9c73be98d223d3ab101a61f02cac277 | [log] [tgz] |
---|---|---|
author | Fam Zheng <famz@redhat.com> | Thu Sep 11 13:41:13 2014 +0800 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Mon Sep 22 11:39:04 2014 +0100 |
tree | e5a40abe6ddb67975cad44d0528ef97796e736cd | |
parent | 3391f5e51c4b55bf72fd33d9bc542a49114e48cd [diff] |
linux-aio: Convert laio_aiocb_info.cancel to .cancel_async Just call io_cancel (2), if it fails, it means the request is not canceled, so the event loop will eventually call qemu_laio_process_completion. In qemu_laio_process_completion, change to call the cb unconditionally. It is required by bdrv_aio_cancel_async. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>