diff options
author | Christoph Hellwig <hch@lst.de> | 2022-11-30 17:16:52 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-12-07 15:02:15 +0100 |
commit | dcef77274ae52136925287b6b59d5c6e6a4adfb9 (patch) | |
tree | 57a10ff4c8aca390356440f7109ac02d75e1cc8c /drivers/nvme/host/nvme.h | |
parent | nvme-pci: split out a nvme_pci_ctrl_is_dead helper (diff) | |
download | linux-dcef77274ae52136925287b6b59d5c6e6a4adfb9.tar.xz linux-dcef77274ae52136925287b6b59d5c6e6a4adfb9.zip |
nvme: pass nr_maps explicitly to nvme_alloc_io_tag_set
Don't look at ctrl->ops as only RDMA and TCP actually support multiple
maps.
Fixes: 6dfba1c09c10 ("nvme-fc: use the tagset alloc/free helpers")
Fixes: ceee1953f923 ("nvme-loop: use the tagset alloc/free helpers")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
-rw-r--r-- | drivers/nvme/host/nvme.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index 2cad9f6f2282..6c4565435fd9 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -747,7 +747,7 @@ int nvme_alloc_admin_tag_set(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set, void nvme_remove_admin_tag_set(struct nvme_ctrl *ctrl); int nvme_alloc_io_tag_set(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set, const struct blk_mq_ops *ops, unsigned int flags, - unsigned int cmd_size); + unsigned int nr_maps, unsigned int cmd_size); void nvme_remove_io_tag_set(struct nvme_ctrl *ctrl); void nvme_remove_namespaces(struct nvme_ctrl *ctrl); |