Bdevperf shutdown_cb calls spdk_app_stop(0) directly. But since json configuration also failed, spdk_rpc_initialize() that calls spdk_app_stop, with -EINVAL. So subsystems are shutdown twice. Adding a flag stopped in spdk_app to record the spdk_app status. This confirms spdk app one start and one stop. Meanwhile this fixes some SEGVS. Fixes issue: #1731. Signed-off-by: yidong0635 <dongx.yi@intel.com> Change-Id: Ic3e36a458813a2d6bcf806de67ab691446b8d6fe Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5802 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Community-CI: Mellanox Build Bot |
||
---|---|---|
.. | ||
app_rpc.c | ||
app.c | ||
dpdk_governor.c | ||
gscheduler.c | ||
json_config.c | ||
log_rpc.c | ||
Makefile | ||
reactor.c | ||
rpc.c | ||
scheduler_static.c | ||
spdk_event.map | ||
subsystem_rpc.c | ||
subsystem.c |