linux_dsm_epyc7002/drivers/infiniband/ulp
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
..
ipoib RDMA 5.10 pull request 2020-10-17 11:18:18 -07:00
iser RDMA: Add rdma_connect_locked() 2020-10-28 09:14:49 -03:00
isert IB/isert: add module param to set sg_tablesize for IO cmd 2021-02-23 15:53:23 +01:00
opa_vnic treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
rtrs RDMA/rtrs-srv: Init wr_cnt as 1 2021-03-04 11:37:57 +01:00
srp treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
srpt RDMA 5.10 second rc pull request 2020-11-05 11:25:02 -08:00
Makefile RDMA/rtrs: include client and server modules into kernel compilation 2020-05-17 18:57:15 -03:00