All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-next 0/5] RDMA/rxe: Protect QP state with qp->state_lock
@ 2023-04-05  4:24 Bob Pearson
  0 siblings, 0 replies; only message in thread
From: Bob Pearson @ 2023-04-05  4:24 UTC (permalink / raw)
  To: jgg, zyjzyj2000, leon, jhack, linux-rdma; +Cc: Bob Pearson

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@gmail.com>

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-05  4:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-05  4:24 [PATCH for-next 0/5] RDMA/rxe: Protect QP state with qp->state_lock Bob Pearson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.