Commit 35e56a96 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

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: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 55f3f20e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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;
}