diff options
author | Fam Zheng <famz@redhat.com> | 2014-09-11 13:41:25 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-09-22 11:39:15 +0100 |
commit | 5da91e4ef46fe85694c5c43a8f3a186a7a83cda7 (patch) | |
tree | 2fb64e1edb953887f26320e91c016e52ab2e7a94 /block | |
parent | 6d24b4df38b0e1b2a6cdeeaa4a0e3dcdee643364 (diff) |
win32-aio: Drop win32_aiocb_info.cancel
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/win32-aio.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/block/win32-aio.c b/block/win32-aio.c index 5030e3274d..eed86f7e92 100644 --- a/block/win32-aio.c +++ b/block/win32-aio.c @@ -106,22 +106,8 @@ static void win32_aio_completion_cb(EventNotifier *e) } } -static void win32_aio_cancel(BlockDriverAIOCB *blockacb) -{ - QEMUWin32AIOCB *waiocb = (QEMUWin32AIOCB *)blockacb; - - /* - * CancelIoEx is only supported in Vista and newer. For now, just - * wait for completion. - */ - while (!HasOverlappedIoCompleted(&waiocb->ov)) { - aio_poll(bdrv_get_aio_context(blockacb->bs), true); - } -} - static const AIOCBInfo win32_aiocb_info = { .aiocb_size = sizeof(QEMUWin32AIOCB), - .cancel = win32_aio_cancel, }; BlockDriverAIOCB *win32_aio_submit(BlockDriverState *bs, |