projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
No need to cast async_exec() syscall to void * anymore
[fio.git]
/
engines
/
syslet-rw.c
diff --git
a/engines/syslet-rw.c
b/engines/syslet-rw.c
index ab2cba2a4aa43ea6c1b5f3842c73cfd3e3a64c7a..0263f05ac0f923227a80af0dc50d5fd17bdf3eda 100644
(file)
--- a/
engines/syslet-rw.c
+++ b/
engines/syslet-rw.c
@@
-75,7
+75,7
@@
static int fio_syslet_getevents(struct thread_data *td, int min,
get_events = min - sd->nr_events;
ret = async_wait(get_events, sd->ahu.user_ring_idx, &sd->ahu);
if (ret < 0)
get_events = min - sd->nr_events;
ret = async_wait(get_events, sd->ahu.user_ring_idx, &sd->ahu);
if (ret < 0)
- return errno;
+ return
-
errno;
} while (1);
ret = sd->nr_events;
} while (1);
ret = sd->nr_events;
@@
-187,13
+187,9
@@
static int fio_syslet_queue(struct thread_data *td, struct io_u *io_u)
io_u->error = errno;
}
io_u->error = errno;
}
- if (sd->nr_events >= td->iodepth)
- printf("ouch! %d\n", sd->nr_events);
+ assert(sd->nr_events < td->iodepth);
- if (!io_u->error)
- /* nothing */;
- else
- td_verror(td, io_u->error);
+ if (io_u->error)
return FIO_Q_COMPLETED;
}
return FIO_Q_COMPLETED;
}