nvmet: fix configfs attr update handling for discovered subsystems
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 13 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | nvmet: forbid changing ctrl ID attributes for discovered subsystemsdrivers/ drivers/ drivers/ | +53 | 0 replies | |
| 2/4 | nvmet: make cntlid ida per subsystemdrivers/ drivers/ | +6 | 0 replies | |
| 3/4 | nvmet: prevent max_qid changes for discovered subsystemsdrivers/ | +20 | 9 replies | |
| 4/4 | nvmet: prevent vid/ssvid changes for discovered subsystemsdrivers/ | +46 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] nvmet: fix configfs attr update handling for discovered subsystems
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(-)
Signature · 1 line
2.18.1