[PATCH 0/4] nvmet: fix configfs attr update handling for discovered subsystems
Max Gurtovoy
mgurtovoy at nvidia.com
Wed Sep 24 13:26:00 PDT 2025
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
More information about the Linux-nvme
mailing list