RDMA/rxe: Cleanup comp tasks in rxe_qp.c
Subsystems (2)
PATCH v3 5/13 RDMA/rxe: Cleanup comp tasks in rxe_qp.c
Take advantage of inline task behavior to cleanup code in rxe_qp.c for completer tasks.
Signed-off-by Ian Ziemba <[email protected]>
Signed-off-by Bob Pearson <[email protected]>
--- drivers/infiniband/sw/rxe/rxe_qp.c | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-)
drivers/infiniband/sw/rxe/rxe_qp.c +4 -14
@@ -480,8 +480,7 @@ static void rxe_qp_reset(struct rxe_qp *qp)/* stop request/comp */ if (qp->sq.queue) { -if (qp_type (qp) ==IB_QPT_RC ) -rxe_disable_task (&qp->comp.task); +rxe_disable_task (&qp->comp.task);rxe_disable_task (&qp->req.task); }
@@ -524,9 +523,7 @@ static void rxe_qp_reset(struct rxe_qp *qp)rxe_enable_task (&qp->resp.task);if (qp->sq.queue) { -if (qp_type (qp) ==IB_QPT_RC ) -rxe_enable_task (&qp->comp.task); - +rxe_enable_task (&qp->comp.task);rxe_enable_task (&qp->req.task); } }
@@ -537,10 +534,7 @@ static void rxe_qp_drain(struct rxe_qp *qp)if (qp->sq.queue) {if (qp->req.state !=QP_STATE_DRAINED ) { qp->req.state =QP_STATE_DRAIN ; -if (qp_type (qp) ==IB_QPT_RC ) -rxe_sched_task (&qp->comp.task); -else -__rxe_do_task (&qp->comp.task); +rxe_sched_task (&qp->comp.task);rxe_sched_task (&qp->req.task); } }
@@ -556,11 +550,7 @@ void rxe_qp_error(struct rxe_qp *qp)/* drain work and packet queues */ rxe_sched_task (&qp->resp.task); - -if (qp_type (qp) ==IB_QPT_RC ) -rxe_sched_task (&qp->comp.task); -else -__rxe_do_task (&qp->comp.task); +rxe_sched_task (&qp->comp.task);rxe_sched_task (&qp->req.task); }
Signature · 1 line
2.34.1