[PATCH v2 0/2] nvme: Enable generic interface (/dev/ngX) for unknown command sets

Joel Granados j.granados at samsung.com
Tue Jun 7 06:40:53 PDT 2022


Currently block and char interface do not show up for any command set other than
NVM and ZNS. This series enables char interface to come up for unknown command sets.

Patch 1: Is prep. It allows the re-use of nvme_mpath_add_disk for
supported as well as independent command sets.

Patch 2: The following functions become aware of whether the command set is
independent or not: nvme_alloc_ns and nvme_validate_ns. A boolean is
introduced in each of them to call the relevant helper to identify and
update the namespaces.  nvme_update_ns_info_cs_indep is added to update
command set independent devices.

Changes since v1:
- Use command-set independent id-ns to enable unknown command-sets

Joel Granados (2):
  nvme-multipath: refactor nvme_mpath_add_disk
  nvme: enable generic interface (/dev/ngXnY) for unknown command sets

 drivers/nvme/host/core.c      | 83 ++++++++++++++++++++++++++++++-----
 drivers/nvme/host/multipath.c |  7 +--
 drivers/nvme/host/nvme.h      |  5 +--
 3 files changed, 78 insertions(+), 17 deletions(-)

-- 
2.30.2




More information about the Linux-nvme mailing list