nvme/perf: let all threads complete on error

Previously, as soon as a worker thread failed, the program would exit
before printing results.

Also add a message at exit time if any errors occurred during test
execution.

Change-Id: I7b3920f0acb8ce364e2bc5cbb78bbe88f3fa7146
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2015-11-03 13:43:57 -07:00
parent 55f3f20e3b
commit 35e56a9603

View File

@ -871,7 +871,7 @@ int main(int argc, char **argv)
worker = g_workers->next;
while (worker != NULL) {
if (rte_eal_wait_lcore(worker->lcore) < 0) {
return -1;
rc = -1;
}
worker = worker->next;
}
@ -880,5 +880,9 @@ int main(int argc, char **argv)
unregister_controllers();
if (rc != 0) {
fprintf(stderr, "%s: errors occured\n", argv[0]);
}
return rc;
}