RDMA/rxe: Protect QP state with qp->state_lock
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 5 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 5 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH for-next 0/5] RDMA/rxe: Protect QP state with qp->state_lock
This patch series makes qp state chages atomic between the various applicationa and IO threads. The rxe driver currently is very unsafe as qp state changes made by application threads e.g. ib_modify_qp() which changes the qp state are not protected against stale reads by IO threads. This patch series cleans up qp state by reducing the redundant state variables (qp->req.state, etc.) and then locking code fragments that access or change the remaining qp state variables.
Bob Pearson (5):
RDMA/rxe: Remove qp->resp.state
RDMA/rxe: Remove qp->comp.state
RDMA/rxe: Remove qp->req.state
RDMA/rxe: Move code to check if drained to subroutine RDMA/rxe: Protect QP state with qp->state_lock
drivers/infiniband/sw/rxe/rxe_comp.c | 94 +++++----- drivers/infiniband/sw/rxe/rxe_net.c | 7 +- drivers/infiniband/sw/rxe/rxe_qp.c | 188 +++++++++----------- drivers/infiniband/sw/rxe/rxe_recv.c | 15 +- drivers/infiniband/sw/rxe/rxe_req.c | 94 ++++++---- drivers/infiniband/sw/rxe/rxe_resp.c | 18 +- drivers/infiniband/sw/rxe/rxe_verbs.c | 242 +++++++++++++++----------- drivers/infiniband/sw/rxe/rxe_verbs.h | 12 -- 8 files changed, 367 insertions(+), 303 deletions(-)
base-commit: b6ba68555d75fd99f7daa9c5a5e476f8635cb155
prerequisite-patch-id: a6993e699da3603cc1d98d704434d467ab3f68f5
Signature · 1 line
2.37.2