Commit b794d1c2 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

nvme: only set reserved_tags in nvme_alloc_io_tag_set for fabrics controllers



The reserved_tags are only needed for fabrics controllers.  Right now only
fabrics drivers call this helper, so this is harmless, but we'll use it
in the PCIe driver soon.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
parent db45e1a5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4899,6 +4899,7 @@ int nvme_alloc_io_tag_set(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set,
	memset(set, 0, sizeof(*set));
	set->ops = ops;
	set->queue_depth = ctrl->sqsize + 1;
	if (ctrl->ops->flags & NVME_F_FABRICS)
		set->reserved_tags = NVMF_RESERVED_TAGS;
	set->numa_node = ctrl->numa_node;
	set->flags = BLK_MQ_F_SHOULD_MERGE;