bdevperf: prevent stopping IO without targets
No need to stop IO on all cores for the targets, if there are no targets configured. At this time it is not possible to trigger that, but in the future shutting down the app when no test is running will not exit cleanly. This is series for adding RPC to bdevperf app. Change-Id: I5feb75d630c4628e0cdf1ee749a16ec93d573aea Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/460445 Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
c0bde83f52
commit
11fc56b863
@ -1200,6 +1200,12 @@ spdk_bdevperf_shutdown_cb(void)
|
||||
struct spdk_event *event;
|
||||
|
||||
g_shutdown = true;
|
||||
|
||||
if (g_target_count == 0) {
|
||||
spdk_app_stop(0);
|
||||
return;
|
||||
}
|
||||
|
||||
g_shutdown_tsc = spdk_get_ticks() - g_shutdown_tsc;
|
||||
|
||||
/* Send events to stop all I/O on each core */
|
||||
|
Loading…
Reference in New Issue
Block a user