Skip to content

Conversation

@igaw
Copy link
Collaborator

@igaw igaw commented Dec 8, 2025

nvme: add fallback support for block vs char device to dsm command

The dsm command is only supported by the block device. The kernel has
support to map NVME_IOCTL_IO_CMD when user spaces uses the char device.
Though for NVME_IOCTL_IO64_CMD this support is missing and wont be added
to the kernel.

Thus add the fallback code to userland.

Fixes: #2991

igaw added 2 commits December 1, 2025 12:06
With the recent cleanup in the passthru code, the uring code was not
updated. Since the calling code is not really interested in the status
code from the nvme command, let's remove this for the time being.

Fixes: 94b1e14 ("src: drop result argument from submit API")
Signed-off-by: Daniel Wagner <wagi@kernel.org>
The dsm command is only supported by the block device. The kernel has
support to map NVME_IOCTL_IO_CMD when user spaces uses the char device.
Though for NVME_IOCTL_IO64_CMD this support is missing and wont be added
to the kernel.

Thus add the fallback code to userland.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
@igaw igaw merged commit 9c218af into linux-nvme:master Dec 8, 2025
25 of 26 checks passed
@igaw igaw deleted the fix-dsm branch December 8, 2025 13:26
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.

nvme dsm and nvme flush test cases fail due to passthru API changes

1 participant