TencentOS-kernel/drivers/nvme/host
Max Gurtovoy 3906a666f6 nvme-rdma: assign completion vector correctly
[ Upstream commit 032a9966a22a3596addf81dacf0c1736dfedc32a ]

The completion vector index that is given during CQ creation can't
exceed the number of support vectors by the underlying RDMA device. This
violation currently can accure, for example, in case one will try to
connect with N regular read/write queues and M poll queues and the sum
of N + M > num_supported_vectors. This will lead to failure in establish
a connection to remote target. Instead, in that case, share a completion
vector between queues.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-16 16:31:28 +08:00
..
Kconfig Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
core.c nvme: fix identify error status silent ignore 2021-03-16 16:31:19 +08:00
fabrics.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
fabrics.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
fault_inject.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
fc.c nvme-fc: Revert "add module to ops template to allow module references" 2021-03-16 16:26:03 +08:00
lightnvm.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
multipath.c nvme: fix a crash in nvme_mpath_add_disk 2021-03-16 16:31:19 +08:00
nvme.h nvme-multipath: fix deadlock due to head->lock 2021-03-16 16:31:15 +08:00
pci.c nvme-pci: use simple suspend when a HMB is enabled 2021-03-16 16:30:35 +08:00
rdma.c nvme-rdma: assign completion vector correctly 2021-03-16 16:31:28 +08:00
tcp.c nvme-tcp: use bh_lock in data_ready 2021-03-16 16:29:30 +08:00
trace.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
trace.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00