Skip to content

DAOS-18597 bio: allow SPDK reinitialization#17614

Open
janekmi wants to merge 2 commits intomasterfrom
janekmi/DAOS-18597-set-SPDK_RPC_STARTUP-manually
Open

DAOS-18597 bio: allow SPDK reinitialization#17614
janekmi wants to merge 2 commits intomasterfrom
janekmi/DAOS-18597-set-SPDK_RPC_STARTUP-manually

Conversation

@janekmi
Copy link
Contributor

@janekmi janekmi commented Feb 26, 2026

Ref: spdk/spdk@fba209c
Ref: #16774

Steps for the author:

  • Commit message follows the guidelines.
  • Appropriate Features or Test-tag pragmas were used.
  • Appropriate Functional Test Stages were run.
  • At least two positive code reviews including at least one code owner from each category referenced in the PR.
  • Testing is complete. If necessary, forced-landing label added and a reason added in a comment.

After all prior steps are complete:

  • Gatekeeper requested (daos-gatekeeper added as a reviewer).

Ref: spdk/spdk@fba209c
Ref: #16774

Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
@janekmi janekmi requested review from a team as code owners February 26, 2026 16:57
@janekmi janekmi requested review from Nasf-Fan and NiuYawei and removed request for a team February 26, 2026 16:58
@github-actions
Copy link

github-actions bot commented Feb 26, 2026

Ticket title is 'ddb dev_list with --vos_path in interactive mode causes segmentation fault'
Status is 'In Progress'
Labels: 'ddb,scrubbed_2.8,test_2.8'
https://daosio.atlassian.net/browse/DAOS-18597

@daosbuild3
Copy link
Collaborator

Signed-off-by: Jan Michalski <jan-marian.michalski@hpe.com>
* 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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe move it after init_arg allocation?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I chose this location deliberately because:

  1. It is next to the spdk_subsystem_load_config() which called spdk_rpc_set_state() previously.
  2. But before anything related to init_arg so the preparation of the argument for the spdk_subsystem_load_config() remains undisturbed.

@janekmi janekmi requested a review from knard38 March 4, 2026 12:41
Copy link
Contributor

@knard38 knard38 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
I have manually tested the proposed patch with success.

Image

@janekmi janekmi requested a review from a team March 5, 2026 11:34
@mchaarawi
Copy link
Contributor

remove gatekeeper till merge approval

@mchaarawi mchaarawi removed the request for review from a team March 6, 2026 15:19
@mchaarawi
Copy link
Contributor

@NiuYawei since you own most of bio, can you please review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants