RDMA/irdma: Remove the unused spin lock in struct irdma_qp_uk
authorZhu Yanjun <yanjun.zhu@linux.dev>
Thu, 21 Oct 2021 23:06:12 +0000 (19:06 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 25 Oct 2021 17:36:58 +0000 (14:36 -0300)
The spin lock in struct irdma_qp_uk is not used. So remove it.

Link: https://lore.kernel.org/r/20211021230612.153812-1-yanjun.zhu@linux.dev
Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/irdma/user.h
drivers/infiniband/hw/irdma/verbs.c

index 66e00660fbaab6609870269ee67bced5dca3fd4a..cba1a2da938dcf466adcf79df95ce4c7a9796038 100644 (file)
@@ -367,7 +367,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;
index aa38ace15c07268b16e99f8db366d3b5c60f9d2b..273d2a7b43d972b68badba48acfdced6650683a0 100644 (file)
@@ -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;