RDMA/rxe: Make tasks schedule each other
authorBob Pearson <rpearsonhpe@gmail.com>
Sat, 4 Mar 2023 17:45:33 +0000 (11:45 -0600)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 24 Mar 2023 14:21:36 +0000 (11:21 -0300)
commitf455a1bc972cefc4bf2dbf1bf37a36bb51a5f7e7
tree80bd745e4a7fca21d11bd5271ff9bf6af6ba5b49
parent960ebe97e5238565d15063c8f4d1b2108efe2e65
RDMA/rxe: Make tasks schedule each other

Replace rxe_run_task() by rxe_sched_task() when tasks call each other.
These are not performance critical and mainly involve error paths but they
run the risk of causing deadlocks.

Link: https://lore.kernel.org/r/20230304174533.11296-8-rpearsonhpe@gmail.com
Signed-off-by: Ian Ziemba <ian.ziemba@hpe.com>
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_comp.c
drivers/infiniband/sw/rxe/rxe_req.c