An administrative controller does not support I/O queues, hence it
should ignore existing checks for IOCCSZ/IORCSZ. Currently, these checks
only exclude a discovery controller but need to also exclude an
administrative controller.
Signed-off-by: Kamaljit Singh <kamaljit.singh@opensource.wdc.com>
---
drivers/nvme/host/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index fab672e50510..ef6f84d677d8 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -3496,14 +3496,14 @@ static int nvme_check_ctrl_fabric_info(struct nvme_ctrl *ctrl, struct nvme_id_ct
return -EINVAL;
}
- if (!nvme_discovery_ctrl(ctrl) && ctrl->ioccsz < 4) {
+ if (nvme_is_io_ctrl(ctrl) && ctrl->ioccsz < 4) {
dev_err(ctrl->device,
"I/O queue command capsule supported size %d < 4\n",
ctrl->ioccsz);
return -EINVAL;
}
- if (!nvme_discovery_ctrl(ctrl) && ctrl->iorcsz < 1) {
+ if (nvme_is_io_ctrl(ctrl) && ctrl->iorcsz < 1) {
dev_err(ctrl->device,
"I/O queue response capsule supported size %d < 1\n",
ctrl->iorcsz);
--
2.43.0
On 9/6/25 01:25, Kamaljit Singh wrote: > An administrative controller does not support I/O queues, hence it > should ignore existing checks for IOCCSZ/IORCSZ. Currently, these checks > only exclude a discovery controller but need to also exclude an > administrative controller. > > Signed-off-by: Kamaljit Singh <kamaljit.singh@opensource.wdc.com> > --- > drivers/nvme/host/core.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Hannes Reinecke <hare@suse.de> Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
On Mon, Sep 08, 2025 at 02:57:00PM +0200, Hannes Reinecke wrote: > On 9/6/25 01:25, Kamaljit Singh wrote: > > An administrative controller does not support I/O queues, hence it > > should ignore existing checks for IOCCSZ/IORCSZ. Currently, these checks > > only exclude a discovery controller but need to also exclude an > > administrative controller. > > > > Signed-off-by: Kamaljit Singh <kamaljit.singh@opensource.wdc.com> > > --- > > drivers/nvme/host/core.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > Reviewed-by: Hannes Reinecke <hare@suse.de> > Please review and provide any feedback for both of these patches. Thanks, Kamaljit
© 2016 - 2026 Red Hat, Inc.