]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
IB/ipath: simplify RC send posting
authorBryan O'Sullivan <bos@pathscale.com>
Mon, 24 Apr 2006 21:23:05 +0000 (14:23 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 1 May 2006 19:14:20 +0000 (12:14 -0700)
Remove some unnecessarily complicated tests.

Signed-off-by: Bryan O'Sullivan <bos@pathscale.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_ruc.c

index f232e77b78eefc2f0aca30fd4d8d8930cb38c4dc..eb81424b3c5bb9bcb112e392d10c58a78f2530a2 100644 (file)
@@ -531,19 +531,12 @@ int ipath_post_rc_send(struct ipath_qp *qp, struct ib_send_wr *wr)
        }
        wqe->wr.num_sge = j;
        qp->s_head = next;
-       /*
-        * Wake up the send tasklet if the QP is not waiting
-        * for an RNR timeout.
-        */
-       next = qp->s_rnr_timeout;
        spin_unlock_irqrestore(&qp->s_lock, flags);
 
-       if (next == 0) {
-               if (qp->ibqp.qp_type == IB_QPT_UC)
-                       ipath_do_uc_send((unsigned long) qp);
-               else
-                       ipath_do_rc_send((unsigned long) qp);
-       }
+       if (qp->ibqp.qp_type == IB_QPT_UC)
+               ipath_do_uc_send((unsigned long) qp);
+       else
+               ipath_do_rc_send((unsigned long) qp);
 
        ret = 0;