struct fio_file *f, enum fio_ddir ddir,
unsigned long long *b)
{
- *b = zipf_next(&td->zipf);
+ *b = zipf_next(&f->zipf);
return 0;
}
struct fio_file *f, enum fio_ddir ddir,
unsigned long long *b)
{
- *b = pareto_next(&td->zipf);
+ *b = pareto_next(&f->zipf);
return 0;
}
if (td->o.max_latency && tusec > td->o.max_latency) {
if (!td->error)
log_err("fio: latency of %lu usec exceeds specified max (%u usec)\n", tusec, td->o.max_latency);
- td_verror(td, ETIME, "max latency exceeded");
- icd->error = ETIME;
+ td_verror(td, ETIMEDOUT, "max latency exceeded");
+ icd->error = ETIMEDOUT;
}
}