Skip to content

Commit 5e8f023

Browse files
tatyana-enrleon
authored andcommitted
RDMA/irdma: Remove a NOP wait_event() in irdma_modify_qp_roce()
Remove a NOP wait_event() in irdma_modify_qp_roce() which is relevant for iWARP and likely a copy and paste artifact for RoCEv2. The wait event is for sending a reset on a TCP connection, after the reset has been requested in irdma_modify_qp(), which occurs only in iWarp mode. Fixes: b48c24c ("RDMA/irdma: Implement device supported verb APIs") Signed-off-by: Tatyana Nikolova <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 8c1f19a commit 5e8f023

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/infiniband/hw/irdma/verbs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,8 +1462,6 @@ int irdma_modify_qp_roce(struct ib_qp *ibqp, struct ib_qp_attr *attr,
14621462
ctx_info->remote_atomics_en = true;
14631463
}
14641464

1465-
wait_event(iwqp->mod_qp_waitq, !atomic_read(&iwqp->hw_mod_qp_pend));
1466-
14671465
ibdev_dbg(&iwdev->ibdev,
14681466
"VERBS: caller: %pS qp_id=%d to_ibqpstate=%d ibqpstate=%d irdma_qpstate=%d attr_mask=0x%x\n",
14691467
__builtin_return_address(0), ibqp->qp_num, attr->qp_state,

0 commit comments

Comments
 (0)