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:
parent
55f3f20e3b
commit
35e56a9603
@ -871,7 +871,7 @@ int main(int argc, char **argv)
|
|||||||
worker = g_workers->next;
|
worker = g_workers->next;
|
||||||
while (worker != NULL) {
|
while (worker != NULL) {
|
||||||
if (rte_eal_wait_lcore(worker->lcore) < 0) {
|
if (rte_eal_wait_lcore(worker->lcore) < 0) {
|
||||||
return -1;
|
rc = -1;
|
||||||
}
|
}
|
||||||
worker = worker->next;
|
worker = worker->next;
|
||||||
}
|
}
|
||||||
@ -880,5 +880,9 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
unregister_controllers();
|
unregister_controllers();
|
||||||
|
|
||||||
|
if (rc != 0) {
|
||||||
|
fprintf(stderr, "%s: errors occured\n", argv[0]);
|
||||||
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user