Skip to content

lib/nvmf: cherry-pick of stop-for-destroy#79

Merged
tiagolobocastro merged 2 commits into
v25.05.x-mayastorfrom
stop-for-destroy
Jun 10, 2026
Merged

lib/nvmf: cherry-pick of stop-for-destroy#79
tiagolobocastro merged 2 commits into
v25.05.x-mayastorfrom
stop-for-destroy

Conversation

@tiagolobocastro

Copy link
Copy Markdown
Member

I will simply rebase the commits

@susobhandey susobhandey left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

it is subsystem_stop_for_destroy. straight forward. Looking good

Replace the bool 'destroying' field with an enum
'nvmf_subsystem_destroy_state'. This prepares for adding
additional destroy states (e.g., pending destroy) in subsequent
patches.

No functional change.

Signed-off-by: Jim Harris <jim.harris@nvidia.com>
Change-Id: I8eb687271f05877cebafaf8b6623ec4fdabf1711
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/27717
Reviewed-by: Konrad Sztyber <ksztyber@nvidia.com>
Reviewed-by: Jacek Kalwas <jacek.kalwas@nutanix.com>
Tested-by: SPDK Automated Test System <spdkbot@gmail.com>
Community-CI: Mellanox Build Bot
This stops the subsystem in a way that it cannot be started again,
in preparation for destroy.

As part of these changes, we can properly handle the case where we
get multiple nvmf_subsystem_delete RPCs for the same subsystem,
avoiding asserts (which are removed in this patch), or use-after-free
errors.

Fixes spdk#3801.

Signed-off-by: Jim Harris <jim.harris@nvidia.com>
Change-Id: Ieffee3da4ccb8e6bd45d726faef323073b2034a6
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/27600
Tested-by: SPDK Automated Test System <spdkbot@gmail.com>
Reviewed-by: Jacek Kalwas <jacek.kalwas@nutanix.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Konrad Sztyber <ksztyber@nvidia.com>
@tiagolobocastro tiagolobocastro merged commit 2d17f92 into v25.05.x-mayastor Jun 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants