linux_dsm_epyc7002/drivers/infiniband
Jack Wang e724c819ed RDMA/rtrs-srv: Init wr_cnt as 1
[ Upstream commit 6f5d1b3016d650f351e65c645a5eee5394547dd0 ]

Fix up wr_avail accounting. if wr_cnt is 0, then we do SIGNAL for first
wr, in completion we add queue_depth back, which is not right in the
sense of tracking for available wr.

So fix it by init wr_cnt to 1.

Fixes: 9cb8374804 ("RDMA/rtrs: server: main functionality")
Link: https://lore.kernel.org/r/20201217141915.56989-19-jinpu.wang@cloud.ionos.com
Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: Gioh Kim <gi-oh.kim@cloud.ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:37:57 +01:00
..
core RDMA/cma: Fix error flow in default_roce_mode_store 2021-01-27 11:55:08 +01:00
hw RDMA/cxgb4: Fix the reported max_recv_sge value 2021-02-03 23:28:46 +01:00
sw RDMA/siw: Fix handling of zero-sized Read and Receive Queues. 2021-03-04 11:37:54 +01:00
ulp RDMA/rtrs-srv: Init wr_cnt as 1 2021-03-04 11:37:57 +01:00
Kconfig RMDA/sw: Don't allow drivers using dma_virt_ops on highmem configs 2020-11-12 13:27:41 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00