Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions site_scons/components/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ def define_components(reqs):
'--with-shared',
'--without-nvme-cuse',
'--without-crypto',
'--enable-debug',
f'--target-arch={spdk_arch}'] + spdk_conf,
['make', f'CONFIG_ARCH={spdk_arch}'],
['make', 'libdir=$SPDK_PREFIX/lib64/daos_srv',
Expand Down
14 changes: 14 additions & 0 deletions src/bio/bio_xstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ bio_spdk_env_init(void)

/* Set SPDK log print level to configured value */
spdk_log_set_print_level(spdk_level);
spdk_log_set_flag("all");

/* Build DPDK options with specified log level for all DPDK log facilities */
dpdk_opts = dpdk_cli_build_opts(dpdk_level, dpdk_level);
Expand Down Expand Up @@ -1710,6 +1711,19 @@ bio_xsctxt_init_by_config(struct common_cp_arg *cp_arg)
return -DER_NOMEM;
}

/**
* Initially, this was called internally spdk_subsystem_load_config() -> ... ->
* spdk_rpc_initialize(). However, since commit
* https://github.com/spdk/spdk/commit/fba209c7324a11b9230533144c02e7a66bc738ea (>=v24.01)
* SPDK_RPC_STARTUP has become the initial value of the underlying global variable and it
* is no longer reset automatically. This makes no difference for applications that
* initialize SPDK only once during the lifetime of the process. But some BIO module
* consumers—such as DDB—expect to be able to initialize, finalize, and then reinitialize
* SPDK multiple times within the same process, for example when inspecting multiple pools
* sequentially. For those use cases, the RPC state must now be reset explicitly.
*/
spdk_rpc_set_state(SPDK_RPC_STARTUP);

D_ALLOC_PTR(init_arg);
if (init_arg == NULL) {
free(json_data);
Expand Down
Loading