Skip to contentSkip to conversation

RDMA/irdma: remove the unused spin lock in struct irdma_qp_uk

PATCH Applied [email protected] 3 participants 3 messages Oct 21, 2021 – Oct 25, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RDMA/irdma: remove the unused spin lock in struct irdma_qp_uk

From: Zhu Yanjun <[email protected]>

The spin lock in struct irdma_qp_uk is not used. So remove it.

---
 drivers/infiniband/hw/irdma/user.h  | 1 -
 drivers/infiniband/hw/irdma/verbs.c | 1 -
 2 files changed, 2 deletions(-)
drivers/infiniband/hw/irdma/user.h +0 -1
index 3dcbb1fbf2c6..e0e9512ad3d5 100644
@@ -369,7 +369,6 @@ struct irdma_qp_uk {
 	bool rq_flush_complete:1; /* Indicates flush was seen and RQ was empty after the flush */
 	bool destroy_pending:1; /* Indicates the QP is being destroyed */
 	void *back_qp;
-	spinlock_t *lock;
 	u8 dbg_rq_flushed;
 	u8 sq_flush_seen;
 	u8 rq_flush_seen;
drivers/infiniband/hw/irdma/verbs.c +0 -1
index 7110ebf834f9..02ca1f80968e 100644
@@ -833,7 +833,6 @@ static int irdma_create_qp(struct ib_qp *ibqp,
 
 	qp = &iwqp->sc_qp;
 	qp->qp_uk.back_qp = iwqp;
-	qp->qp_uk.lock = &iwqp->lock;
 	qp->push_idx = IRDMA_INVALID_PUSH_PAGE_INDEX;
 
 	iwqp->iwdev = iwdev;
Signature · 1 line
2.27.0
maintainer Applied
#2 lore raw
In reply to [email protected]
Quoted 10 lines · On Thu, Oct 21, 2021 at 07:06:12PM -0400, [email protected] wrote:

From: Zhu Yanjun <[email protected]>

The spin lock in struct irdma_qp_uk is not used. So remove it.

---
 drivers/infiniband/hw/irdma/user.h  | 1 -
 drivers/infiniband/hw/irdma/verbs.c | 1 -
 2 files changed, 2 deletions(-)

Applied to for-next, thanks

Jason