[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250721173700.4153098-1-kamaljit.singh1@wdc.com>
Date: Mon, 21 Jul 2025 10:36:58 -0700
From: Kamaljit Singh <kamaljit.singh1@....com>
To: kbusch@...nel.org,
axboe@...nel.dk,
hch@....de,
sagi@...mberg.me,
linux-nvme@...ts.infradead.org,
linux-kernel@...r.kernel.org
Cc: cassel@...nel.org,
dlemoal@...nel.org,
kamaljit.singh1@....com
Subject: [PATCH v4 0/2] Support for Administrative Controllers
Patch-set summary:
------------------
[1] add capability to connect to an administrative controller
- New function identifies an administrative controller via the
controller's CNTRLTYPE
- Prevent I/O queue creation for administrative controllers by
overriding the controller's queue_count and setting it
to 1, so only an admin connection is allowed to be created.
[2] prevent admin controller from smart log fetch (LID 2)
- Conditional around nvme_hwmon_init() now disallowes administrative
controllers during controller initialization.
Changelog:
----------
Changes from v3:
- Remove inline helper nvme_override_prohibited_io_queues() and
move code directly into nvme_init_ctrl_finish()
- Add more detailed comments and changelog to patch-set
Changes from v2:
- Avoid calling nvme_override_prohibited_io_queues() from
RDMA and TCP (nvme_rdma_setup_ctrl()/nvme_tcp_setup_ctrl()) fabrics
drivers by moving it into the generic code under nvme_init_ctrl_finish()
- Remove export of nvme_override_prohibited_io_queues()
- Change announcing of administrative controller from dev_info to dev_dbg
- Coding style change. Remove parenthesis in nvme_admin_ctrl() as
suggested by Damien
Changes from v1:
- Remove check that disallowed zero I/O queues for an I/O controller
- Create helper nvme_override_prohibited_io_queues() for identical code
in nvme_rdma_setup_ctrl() and nvme_tcp_setup_ctrl()
- Separate into multiple patches
- Revert naming of nvmf_discovery_ctrl() back to nvme_discovery_ctrl()
- Move nvme_admin_ctrl() from nvme.h to core.c
Kamaljit Singh (2):
nvme: add capability to connect to an administrative controller
nvme: prevent admin controller from smart log fetch (LID 2)
drivers/nvme/host/core.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
--
2.43.0
Powered by blists - more mailing lists