-static int fio_windowsaio_cancel(struct thread_data *td,
- struct io_u *io_u)
-{
- int rc = 0;
-
- struct windowsaio_data *wd = td->io_ops->data;
-
- /* If we're running on Vista or newer, we can cancel individual IO requests */
- if (wd->pCancelIoEx != NULL) {
- struct fio_overlapped *ovl = io_u->engine_data;
-
- if (!wd->pCancelIoEx(io_u->file->hFile, &ovl->o)) {
- log_err("windowsaio: failed to cancel io\n");
- rc = 1;
- }
- } else
- rc = 1;
-
- return rc;
-}
-