if (!max_blocks)
return 0;
- return max_blocks - 1;
+ return max_blocks;
}
/*
return 0;
}
-void io_u_mark_depth(struct thread_data *td, struct io_u *io_u,
- unsigned int nr)
+void io_u_mark_depth(struct thread_data *td, unsigned int nr)
{
int index = 0;
- if (io_u->ddir == DDIR_SYNC)
- return;
-
switch (td->cur_depth) {
default:
index = 6;
}
td->ts.io_u_map[index] += nr;
- td->ts.total_io_u[io_u->ddir] += nr;
}
static void io_u_mark_lat_usec(struct thread_data *td, unsigned long usec)