[PATCH for-next 0/5] RDMA/rxe: Protect QP state with qp->state_lock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Signed-off-by: Bob Pearson <rpearsonhpe@xxxxxxxxx>

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
-- 
2.37.2




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux