summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
795407c)
We return 1/0 for failure/success and put the error in io_u->error.
The libaio engine didn't quite do that.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
+ if (ret <= 0) {
+ io_u->resid = io_u->buflen;
+ io_u->error = -ret;
+ return 1;
+ }
}
static int fio_libaio_cancel(struct thread_data *td, struct io_u *io_u)
}
static int fio_libaio_cancel(struct thread_data *td, struct io_u *io_u)
ret = td_io_queue(td, io_u);
if (ret) {
ret = td_io_queue(td, io_u);
if (ret) {
+ td_verror(td, io_u->error);
return 1;
}
ret = td_io_getevents(td, 1, td->cur_depth, NULL);
if (ret < 0) {
return 1;
}
ret = td_io_getevents(td, 1, td->cur_depth, NULL);
if (ret < 0) {
ret = td_io_queue(td, io_u);
if (ret) {
ret = td_io_queue(td, io_u);
if (ret) {
+ td_verror(td, io_u->error);
ret = td_io_queue(td, io_u);
if (ret) {
ret = td_io_queue(td, io_u);
if (ret) {
+ td_verror(td, io_u->error);