All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] nvmet: use right MNAN value for controllers
@ 2021-06-13 20:02 Chaitanya Kulkarni
  2021-06-13 20:02 ` [PATCH 1/3] nvmet: use subsys->max_nsid to report MNAN Chaitanya Kulkarni
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Chaitanya Kulkarni @ 2021-06-13 20:02 UTC (permalink / raw)
  To: linux-nvme; +Cc: hch, dwagner, sagi, Chaitanya Kulkarni

Hi,

In current implementation we report MNAN value as NVMET_MAX_NAMESPACES.

For Spec regarding MNAN value:-

If the controller supports Asymmetric Namespace Access Reporting, then
this field shall be set to a _non-zero_ value that is less than or equal
to the NN value.

The first patch sets identify controller MNAN value to subsys->max_nsid
that is always less than or equal to the NN.

The second patch prevents creating the controller from subsys if subsys
has 0 namespaces since it will report 0 (invalid) MNAN value.

The third patch prevents reporting such subsys in the dicovery log page.

-ck

Chaitanya Kulkarni (3):
  nvmet: use subsys->max_nsid to report MNAN
  nvmet: prevent creating ctrl with no namespace
  nvmet: don't report subsys with 0 namespaces

 drivers/nvme/target/admin-cmd.c |  2 +-
 drivers/nvme/target/core.c      |  9 +++++++++
 drivers/nvme/target/discovery.c | 13 +++++++++++++
 3 files changed, 23 insertions(+), 1 deletion(-)

-- 
2.22.1


_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

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

end of thread, other threads:[~2021-06-21  3:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-13 20:02 [PATCH 0/3] nvmet: use right MNAN value for controllers Chaitanya Kulkarni
2021-06-13 20:02 ` [PATCH 1/3] nvmet: use subsys->max_nsid to report MNAN Chaitanya Kulkarni
2021-06-14  6:36   ` Christoph Hellwig
2021-06-14 21:19     ` Chaitanya Kulkarni
2021-06-13 20:02 ` [PATCH 2/3] nvmet: prevent creating ctrl with no namespace Chaitanya Kulkarni
2021-06-17 19:06   ` Sagi Grimberg
2021-06-18  4:28     ` Christoph Hellwig
2021-06-21  3:02       ` Chaitanya Kulkarni
2021-06-13 20:02 ` [PATCH 3/3] nvmet: don't report subsys with 0 namespaces Chaitanya Kulkarni
2021-06-13 21:04 ` [PATCH 0/3] nvmet: use right MNAN value for controllers Chaitanya Kulkarni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.