+0
−2
+1
−1
Loading
Set lib/rpc g_rpc_state to SPDK_RPC_STARTUP upon declaration. This renders spdk_rpc_set_state() in spdk_rpc_initialize() unnecessary and reduces number of operations it performs. This change also opens our code to possibility of calling spdk_rpc_initialize multiple times in the future without resetting RPC state to startup each time (spdk_rpc_initialize will be called multiple times in the following patches). This is the start of a series of changes that implement SPDK application initialization with both JSON config file and subsystem initialiation delay (--wait-for-rpc). To achieve this goal the series focuses on a number of key changes: a) introducing new APIs to manage server objects instead of working on a single global instance, b) deprecating current lib/rpc and lib/init server related functions, c) moving server instances from lib/rpc to a list in lib/init. Change-Id: I766f0149b9c12940faef3562f2795f5f1e1381db Signed-off-by:Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21079 Reviewed-by:
Jim Harris <jim.harris@samsung.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com>