linux-stable/drivers/infiniband
Bob Pearson 0c7e314a63 RDMA/rxe: Fix rxe_cq_post
A recent patch replaced a tasklet execution of cq->comp_handler by a
direct call. While this made sense it let changes to cq->notify state be
unprotected and assumed that the cq completion machinery and the ulp done
callbacks were reentrant. The result is that in some cases completion
events can be lost. This patch moves the cq->comp_handler call inside of
the spinlock in rxe_cq_post which solves both issues. This is compatible
with the matching code in the request notify verb.

Fixes: 78b26a3353 ("RDMA/rxe: Remove tasklet call from rxe_cq.c")
Link: https://lore.kernel.org/r/20230612155032.17036-1-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2023-06-14 14:12:43 -03:00
..
core IB/uverbs: Fix to consider event queue closing also upon non-blocking mode 2023-06-11 11:27:12 +03:00
hw RDMA/mlx5: Fix affinity assignment 2023-06-11 11:27:17 +03:00
sw RDMA/rxe: Fix rxe_cq_post 2023-06-14 14:12:43 -03:00
ulp IB/isert: Fix incorrect release of isert connection 2023-06-11 20:29:34 +03:00
Kconfig RDMA: Disable IB HW for UML 2022-12-04 15:22:03 +02:00
Makefile