X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.c;h=e8a86585d4bd5d4ee83cff9202eca1ef8a3a58a9;hp=61fd098958704473113dfa5cb6a76c795ce7f8a7;hb=5bf13a5a5f01986c5b87db26f0cadf95af133188;hpb=890df538b3645d9310a3527513195773130d1d7f diff --git a/fio.c b/fio.c index 61fd0989..e8a86585 100644 --- a/fio.c +++ b/fio.c @@ -400,7 +400,6 @@ static void do_io(struct thread_data *td) break; memcpy(&s, &io_u->start_time, sizeof(s)); - requeue: ret = td_io_queue(td, io_u); if (ret) { @@ -756,12 +755,13 @@ static void *thread_main(void *data) terminate_threads(td->groupid, 0); err: + if (td->error) + printf("fio: pid=%d, err=%d/%s\n", td->pid, td->error, td->verror); close_files(td); close_ioengine(td); cleanup_io_u(td); td_set_runstate(td, TD_EXITED); return NULL; - } /* @@ -873,6 +873,9 @@ static void run_threads(void) * client data interspersed on disk */ if (setup_files(td)) { + exit_value++; + if (td->error) + log_err("fio: pid=%d, err=%d/%s\n", td->pid, td->error, td->verror); td_set_runstate(td, TD_REAPED); todo--; }