public inbox for linux-nvme@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCHv4 0/3] nvmet: unique discovery subsystems
@ 2022-04-07 10:48 Hannes Reinecke
  2022-04-07 10:48 ` [PATCH 1/3] nvmet: make the subsystem type configurable Hannes Reinecke
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Hannes Reinecke @ 2022-04-07 10:48 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Sagi Grimberg, Keith Busch, linux-nvme, Hannes Reinecke

Hi all,

here's my next attempt to support unique discovery subsystems, again heavily
modified from the previous attempts.

As per suggestion from Christoph this patchset allows to have a per-port
discovery subsystem. For that a normal NVMe subsystem needs to be created
via configfs, the type needs to be changed to 'discovery', and then linked
into the port where this discovery subsystem should be visible.

Once that is done the discovery log page output will include all ports
into which the same discovery controller is linked.

If the discovery subsystem is unlinked the default behaviour is reinstated.

As usual, comments and reviews are welcome.

Changes to v3:
- Rework to use per-port discovery subsystems as suggested by hch

Changes to v2:
- Heavily rework after discussion on the mailing list

Changes to the original submission:
- Include all subsystems in the discovery log output

Hannes Reinecke (3):
  nvmet: make the subsystem type configurable
  nvmet: per-port discovery subsystem
  nvmet: include all configured ports in the discovery log page

 drivers/nvme/target/configfs.c  | 82 +++++++++++++++++++++++++++++++++
 drivers/nvme/target/core.c      |  6 +--
 drivers/nvme/target/discovery.c | 82 ++++++++++++++++++++++++---------
 drivers/nvme/target/nvmet.h     |  1 +
 4 files changed, 145 insertions(+), 26 deletions(-)

-- 
2.29.2



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-04-08  5:48 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-07 10:48 [PATCHv4 0/3] nvmet: unique discovery subsystems Hannes Reinecke
2022-04-07 10:48 ` [PATCH 1/3] nvmet: make the subsystem type configurable Hannes Reinecke
2022-04-07 15:44   ` Christoph Hellwig
2022-04-07 16:55     ` Hannes Reinecke
2022-04-08  5:46       ` Christoph Hellwig
2022-04-07 10:48 ` [PATCH 2/3] nvmet: per-port discovery subsystem Hannes Reinecke
2022-04-07 15:49   ` Christoph Hellwig
2022-04-07 17:21     ` Hannes Reinecke
2022-04-08  5:48       ` Christoph Hellwig
2022-04-07 10:48 ` [PATCH 3/3] nvmet: include all configured ports in the discovery log page Hannes Reinecke
2022-04-07 13:29   ` Sagi Grimberg
2022-04-07 13:31     ` Hannes Reinecke
2022-04-07 13:34       ` Christoph Hellwig
2022-04-07 13:38       ` Sagi Grimberg
2022-04-07 14:51         ` Hannes Reinecke
2022-04-07 15:38           ` Christoph Hellwig
2022-04-07 15:41   ` Christoph Hellwig
2022-04-07 17:25     ` Hannes Reinecke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox