Skip to content

tree: always set the host key#1041

Merged
igaw merged 2 commits intolinux-nvme:masterfrom
igaw:fix-scan-sysfs-dhchap
Jul 25, 2025
Merged

tree: always set the host key#1041
igaw merged 2 commits intolinux-nvme:masterfrom
igaw:fix-scan-sysfs-dhchap

Conversation

@igaw
Copy link
Collaborator

@igaw igaw commented Jul 24, 2025

The current logic will not set the host secret to the controller when
the sysfs value and the value from the host object are identically.

Thus, if the controller has a host key us this one and add it to
controller, if missing try to use the one from the host object.

Signed-off-by: Daniel Wagner wagi@kernel.org

@igaw igaw force-pushed the fix-scan-sysfs-dhchap branch 2 times, most recently from 8a09833 to 283c9c1 Compare July 25, 2025 07:59
igaw added 2 commits July 25, 2025 09:59
When the transport is pcie the port_obj is leaked.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
The current logic will not set the host secret to the controller when
the sysfs value and the value from the host object are identically.

Setting the secret from the host object to the controller is not what
this function is supposed to do. It should read the value from the
sysfs.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
@igaw igaw force-pushed the fix-scan-sysfs-dhchap branch from 283c9c1 to d724952 Compare July 25, 2025 07:59
@igaw igaw merged commit a343ed6 into linux-nvme:master Jul 25, 2025
12 checks passed
@igaw igaw deleted the fix-scan-sysfs-dhchap branch July 25, 2025 08:01
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.

1 participant