i don't know what this 1 means in the first place but at least
it isn't portable. instead, check if the i/o has already
completed. (AIO_ALLDONE)
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
struct fio_file *f = io_u->file;
int r = aio_cancel(f->fd, &io_u->aiocb);
struct fio_file *f = io_u->file;
int r = aio_cancel(f->fd, &io_u->aiocb);
- if (r == 1 || r == AIO_CANCELED)
+ if (r == AIO_ALLDONE || r == AIO_CANCELED)