Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
struct io_u *io_u;
struct timeval now;
struct io_u *io_u;
struct timeval now;
+ if (!fio_fill_issue_time(td))
+ return;
+
io_u_mark_submit(td, nr);
fio_gettime(&now, NULL);
for (i = 0; i < nr; i++) {
io_u_mark_submit(td, nr);
fio_gettime(&now, NULL);
for (i = 0; i < nr; i++) {
struct timeval now;
unsigned int i;
struct timeval now;
unsigned int i;
+ if (!fio_fill_issue_time(td))
+ return;
+
fio_gettime(&now, NULL);
for (i = 0; i < nr; i++) {
fio_gettime(&now, NULL);
for (i = 0; i < nr; i++) {
#define dprint_io_u(io_u, p)
#endif
#define dprint_io_u(io_u, p)
#endif
+static inline int fio_fill_issue_time(struct thread_data *td)
+{
+ if (td->o.read_iolog_file ||
+ !td->o.disable_clat || !td->o.disable_slat || !td->o.disable_bw)
+ return 1;
+
+ return 0;
+}
+
-static inline int get_issue_time(struct thread_data *td)
-{
- if (td->o.read_iolog_file ||
- !td->o.disable_clat || !td->o.disable_slat || !td->o.disable_bw)
- return 1;
-
- return 0;
-}
-
int td_io_queue(struct thread_data *td, struct io_u *io_u)
{
int ret;
int td_io_queue(struct thread_data *td, struct io_u *io_u)
{
int ret;
io_u->resid = 0;
if (td->io_ops->flags & FIO_SYNCIO) {
io_u->resid = 0;
if (td->io_ops->flags & FIO_SYNCIO) {
- if (get_issue_time(td))
+ if (fio_fill_issue_time(td))
fio_gettime(&io_u->issue_time, NULL);
/*
fio_gettime(&io_u->issue_time, NULL);
/*
}
if ((td->io_ops->flags & FIO_SYNCIO) == 0) {
}
if ((td->io_ops->flags & FIO_SYNCIO) == 0) {
- if (get_issue_time(td))
+ if (fio_fill_issue_time(td))
fio_gettime(&io_u->issue_time, NULL);
/*
fio_gettime(&io_u->issue_time, NULL);
/*