801e76d8bf
Change bool g_run_failed to int g_run_rc. If any error is detected during bdevperf running, negative return code is directly set to g_run_rc. Then g_run_rc is passed to rpc_perform_tests_cb() or bdevperf_fini(). Besides, we had updated g_run_failed even after spdk_app_start() returned. However return code of spdk_app_start() might not be of bdevperf_run(). Hence change main() to return the return code of spdk_app_start() simply without updating g_run_failed. Additionally, even if g_target_count becomes zero in spdk_bdevperf_shutdown_cb(), g_run_rc may indicate error. So, change spdk_bdevperf_shutdown_cb() to pass g_run_rc to bdevperf_fini(). Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ia85680679087c3106ba687d7e58027ae8ff4a5c7 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478833 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> |
||
---|---|---|
.. | ||
bdevio | ||
bdevperf | ||
bdev_raid.sh | ||
bdev.conf.in | ||
blockdev.sh | ||
gen_crypto.sh | ||
Makefile | ||
nbd_common.sh |