return 0;
}
- ret = fio_backend();
+ ret = fio_backend(NULL);
free_threads_shm();
_exit(ret);
}
* Fake ETA return if we don't have a local one, otherwise the client
* will end up timing out waiting for a response to the ETA request
*/
- je = get_jobs_eta(1, &size);
- if (!je)
- je = calloc(1, sizeof(*je));
- else {
+ je = get_jobs_eta(true, &size);
+ if (!je) {
+ size = sizeof(*je);
+ je = calloc(1, size);
+ } else {
je->nr_running = cpu_to_le32(je->nr_running);
je->nr_ramp = cpu_to_le32(je->nr_ramp);
je->nr_pending = cpu_to_le32(je->nr_pending);
/*
* Wait for the backend to receive the reply
*/
- if (fio_mutex_down_timeout(&rep->lock, 10)) {
+ if (fio_mutex_down_timeout(&rep->lock, 10000)) {
log_err("fio: timed out waiting for reply\n");
goto fail;
}