Skip to content

tree: fix nvme_subsystem_scan_namespaces() return handling#3106

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
martin-gpy:nvme_subsystem_scan_namespaces
Feb 20, 2026
Merged

tree: fix nvme_subsystem_scan_namespaces() return handling#3106
igaw merged 1 commit intolinux-nvme:masterfrom
martin-gpy:nvme_subsystem_scan_namespaces

Conversation

@martin-gpy
Copy link
Copy Markdown
Contributor

nvme list-subsys with the -vv option currently displays the following:

scan controller nvme0
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys0/nvme0 scan controller nvme0 path nvme0c0n1
scan subsystem nvme-subsys0
scan subsystem nvme-subsys0 namespace nvme0n1
failed to scan subsystem nvme-subsys0: Invalid argument ...

The invalid argument seen above is due to the wrong return handling of nvme_subsystem_scan_namespaces() in nvme_scan_subsystem(). Fix the same.

nvme list-subsys with the -vv option currently displays the following:

scan controller nvme0
lookup subsystem /sys/class/nvme-subsystem/nvme-subsys0/nvme0
scan controller nvme0 path nvme0c0n1
scan subsystem nvme-subsys0
scan subsystem nvme-subsys0 namespace nvme0n1
failed to scan subsystem nvme-subsys0: Invalid argument
...

The invalid argument seen above is due to the wrong return handling
of nvme_subsystem_scan_namespaces() in nvme_scan_subsystem().
Fix the same.

Signed-off-by: Martin George <[email protected]>
@igaw igaw merged commit 8a4df2b into linux-nvme:master Feb 20, 2026
19 checks passed
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Feb 20, 2026

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