public inbox for linux-nvme@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/4] nvmet: fix configfs attr update handling for discovered subsystems
@ 2025-09-24 20:26 Max Gurtovoy
  2025-09-24 20:26 ` [PATCH 1/4] nvmet: forbid changing ctrl ID attributes " Max Gurtovoy
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Max Gurtovoy @ 2025-09-24 20:26 UTC (permalink / raw)
  To: hch, linux-nvme, kbusch, sagi, kch; +Cc: dwagner, israelr, Max Gurtovoy

Hello,
This patch series addresses issues in the NVMe target configfs attribute
handling to ensure subsystem configuration consistency and prevent races
or invalid states once a subsystem has been discovered by a host.

The main goals of this series are:

1. Forbid changes to controller ID min/max attributes values on already
   discovered subsystems.
2. Switch cntlid ida allocation from global to per-subsystem scope,
   matching the granularity of controller ID ranges.
3. Forbid changes to vendor ID and subsystem vendor ID attributes values
   on already discovered subsystems.
4. Forbid changes to max_qid attribute values on already discovered
   subsystems.

This improves consistency by ensuring that user-space configuration
updates do not conflict with controller objects already instantiated in
the kernel.

Max Gurtovoy (4):
  nvmet: forbid changing ctrl ID attributes for discovered subsystems
  nvmet: make cntlid ida per subsystem
  nvmet: prevent max_qid changes for discovered subsystems
  nvmet: prevent vid/ssvid changes for discovered subsystems

 drivers/nvme/target/admin-cmd.c |   6 --
 drivers/nvme/target/configfs.c  | 140 ++++++++++++++++++++++++++------
 drivers/nvme/target/core.c      |  16 ++--
 drivers/nvme/target/nvmet.h     |   1 +
 4 files changed, 125 insertions(+), 38 deletions(-)

-- 
2.18.1



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

end of thread, other threads:[~2025-10-29  9:32 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-24 20:26 [PATCH 0/4] nvmet: fix configfs attr update handling for discovered subsystems Max Gurtovoy
2025-09-24 20:26 ` [PATCH 1/4] nvmet: forbid changing ctrl ID attributes " Max Gurtovoy
2025-09-24 20:26 ` [PATCH 2/4] nvmet: make cntlid ida per subsystem Max Gurtovoy
2025-09-24 20:26 ` [PATCH 3/4] nvmet: prevent max_qid changes for discovered subsystems Max Gurtovoy
2025-09-25  7:36   ` Daniel Wagner
2025-09-25  8:28     ` Max Gurtovoy
2025-09-25 11:32       ` Daniel Wagner
2025-09-25 12:06         ` Max Gurtovoy
2025-09-25 16:02           ` Daniel Wagner
2025-09-25 22:09             ` Max Gurtovoy
2025-09-26  6:58               ` Daniel Wagner
2025-09-28 11:53                 ` Max Gurtovoy
2025-10-01  6:04                   ` Daniel Wagner
2025-09-24 20:26 ` [PATCH 4/4] nvmet: prevent vid/ssvid " Max Gurtovoy
2025-09-24 22:13 ` [PATCH 0/4] nvmet: fix configfs attr update handling " Keith Busch
2025-09-28 13:31   ` Max Gurtovoy
2025-10-08 22:56   ` Max Gurtovoy
2025-10-29  9:32   ` Christoph Hellwig

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