]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/siw: Fix broken RDMA Read Fence/Resume logic.
authorBernard Metzler <bmt@zurich.ibm.com>
Sun, 30 Jan 2022 17:08:15 +0000 (18:08 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 1 Feb 2022 13:54:28 +0000 (09:54 -0400)
commitb62b5c1277aef7183f81d47b4cd6e7e30c92bbeb
tree8d6325c883102540ef2a6a03bf224ff76eb41d05
parentfb642b2cb33856b9edc596aad4e098196cd1abcc
RDMA/siw: Fix broken RDMA Read Fence/Resume logic.

Code unconditionally resumed fenced SQ processing after next RDMA Read
completion, even if other RDMA Read responses are still outstanding, or
ORQ is full. Also adds comments for better readability of fence
processing, and removes orq_get_tail() helper, which is not needed
anymore.

Fixes: b729ba0e6e4a ("rdma/siw: receive path")
Fixes: bee545190559 ("rdma/siw: main include file")
Link: https://lore.kernel.org/r/20220130170815.1940-1-bmt@zurich.ibm.com
Reported-by: Jared Holzman <jared.holzman@excelero.com>
Signed-off-by: Bernard Metzler <bmt@zurich.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/siw/siw.h
drivers/infiniband/sw/siw/siw_qp_rx.c