]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: pass nr_maps explicitly to nvme_alloc_io_tag_set
authorChristoph Hellwig <hch@lst.de>
Wed, 30 Nov 2022 16:16:52 +0000 (17:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:25 +0000 (13:32 +0100)
commitd2aaee4a002adb4deacbf761190b8f995180a985
tree4a1b6cac5f97a5410dffdb302fdbf8591cf9a37e
parentcc2dc151c8d58a34e590350ccf4af484f0024230
nvme: pass nr_maps explicitly to nvme_alloc_io_tag_set

[ Upstream commit 2f9757b5ae39640d4984af661e8918470b10bcd0 ]

Don't look at ctrl->ops as only RDMA and TCP actually support multiple
maps.

Fixes: 00e0ae2ac0c4 ("nvme-fc: use the tagset alloc/free helpers")
Fixes: 9ed94e92a057 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/core.c
drivers/nvme/host/fc.c
drivers/nvme/host/nvme.h
drivers/nvme/host/rdma.c
drivers/nvme/host/tcp.c
drivers/nvme/target/loop.c