RDMA/rxe: Remove init of task locks from rxe_qp.c
authorBob Pearson <rpearsonhpe@gmail.com>
Fri, 21 Oct 2022 20:01:03 +0000 (15:01 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 28 Oct 2022 16:47:15 +0000 (13:47 -0300)
The calls to spin_lock_init() for the tasklet spinlocks in
rxe_qp_init_misc() are redundant since they are intiialized in
rxe_init_task().  This patch removes them.

Link: https://lore.kernel.org/r/20221021200118.2163-3-rpearsonhpe@gmail.com
Signed-off-by: Ian Ziemba <ian.ziemba@hpe.com>
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_qp.c

index a62bab8..57c3f05 100644 (file)
@@ -172,10 +172,6 @@ static void rxe_qp_init_misc(struct rxe_dev *rxe, struct rxe_qp *qp,
 
        spin_lock_init(&qp->state_lock);
 
-       spin_lock_init(&qp->req.task.state_lock);
-       spin_lock_init(&qp->resp.task.state_lock);
-       spin_lock_init(&qp->comp.task.state_lock);
-
        spin_lock_init(&qp->sq.sq_lock);
        spin_lock_init(&qp->rq.producer_lock);
        spin_lock_init(&qp->rq.consumer_lock);