Skip to content

libnvme: leave registry ownership alone on a reused connection - #3942

Merged
igaw merged 1 commit into
linux-nvme:masterfrom
martin-belanger:registry-ownership-on-reuse
Aug 28, 2026
Merged

libnvme: leave registry ownership alone on a reused connection#3942
igaw merged 1 commit into
linux-nvme:masterfrom
martin-belanger:registry-ownership-on-reuse

Conversation

@martin-belanger

Copy link
Copy Markdown

nvme connect wrote the ownership registry even when it did not create the controller. A bare connect against a controller nvme-stas or nvme-discoverd already holds deleted that controller's ownership entry, with no flag, no prompt and no output. The controller keeps running, but it now reads as unowned and loses the protection the registry gives it.

Passing --owner=NAME to claim a controller is a stated intent and keeps working. Without --owner no intent is stated, so an existing entry is left alone.

A controller the kernel just created still gets its entry cleared, since a recycled instance number can leave a stale one behind. An empty --owner= now disowns instead of recording an empty owner.

nvme connect wrote the ownership registry even when it did not create
the controller. A bare connect against a controller nvme-stas or
nvme-discoverd already holds deleted that controller's ownership
entry, with no flag, no prompt and no output. The controller keeps
running, but it now reads as unowned and loses the protection the
registry gives it.

Passing --owner=NAME to claim a controller is a stated intent and
keeps working. Without --owner no intent is stated, so an existing
entry is left alone.

A controller the kernel just created still gets its entry cleared,
since a recycled instance number can leave a stale one behind. An
empty --owner= now disowns instead of recording an empty owner.

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
@igaw
igaw merged commit 6312a8a into linux-nvme:master Aug 28, 2026
31 checks passed
@igaw

igaw commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Thanks!

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.

2 participants