[RFC v2 0/3] nvme: add csi, ms and nuse to sysfs

Daniel Wagner dwagner at suse.de
Fri Dec 1 01:27:32 PST 2023


I've moved all ns id info to nvms_ns_head in this version as we discussed in v1
(hope I understood it right). The change was pretty much straightforward except for 

  nvme_mpath_clear_current_path
  nvme_mpath_revalidate_paths
  nvme_failover_req

where there is need to access a nvme_ns pointer again. I've tested this change
with the nvme-pci and nvme-tcp transport so far.

Thanks,
Daniel

libnvme changes:
  https://github.com/igaw/libnvme/tree/tree-no-cmd
  
changes:

v2:
 - moved ns id data to nvme_ns_head
 - dropped ds, nsze

v1:
 - initial version
 - https://lore.kernel.org/linux-nvme/20231127103208.25748-1-dwagner@suse.de/

Daniel Wagner (3):
  nvme: lookup ctrl from request instead from namespace
  nvme: move ns id info to struct nvme_ns_head
  nvme: add csi, ms and nuse to sysfs

 drivers/nvme/host/apple.c      |   4 +-
 drivers/nvme/host/core.c       | 191 +++++++++++++++++----------------
 drivers/nvme/host/fc.c         |   4 +-
 drivers/nvme/host/ioctl.c      |  20 ++--
 drivers/nvme/host/multipath.c  |  40 +++----
 drivers/nvme/host/nvme.h       |  57 +++++-----
 drivers/nvme/host/rdma.c       |  10 +-
 drivers/nvme/host/sysfs.c      |  24 +++++
 drivers/nvme/host/tcp.c        |   8 +-
 drivers/nvme/host/zns.c        |  30 +++---
 drivers/nvme/target/loop.c     |   4 +-
 drivers/nvme/target/passthru.c |   8 +-
 12 files changed, 216 insertions(+), 184 deletions(-)

-- 
2.43.0




More information about the Linux-nvme mailing list