Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72919
b: refs/heads/master
c: fffbfea
h: refs/heads/master
i:
  72917: 2c143dd
  72915: 4c335a9
  72911: 4197d55
v: v3
  • Loading branch information
Ralph Campbell authored and Roland Dreier committed Oct 30, 2007
1 parent 4d79ed1 commit 5b366a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 96db0e0335c7981911bd7efc5c79e82d2358c0fc
refs/heads/master: fffbfeaa680e2b87a591e141f2aa7e9e91184956
14 changes: 9 additions & 5 deletions trunk/drivers/infiniband/hw/ipath/ipath_ruc.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,11 +630,8 @@ bail:;
void ipath_send_complete(struct ipath_qp *qp, struct ipath_swqe *wqe,
enum ib_wc_status status)
{
u32 last = qp->s_last;

if (++last == qp->s_size)
last = 0;
qp->s_last = last;
unsigned long flags;
u32 last;

/* See ch. 11.2.4.1 and 10.7.3.1 */
if (!(qp->s_flags & IPATH_S_SIGNAL_REQ_WR) ||
Expand All @@ -658,4 +655,11 @@ void ipath_send_complete(struct ipath_qp *qp, struct ipath_swqe *wqe,
wc.port_num = 0;
ipath_cq_enter(to_icq(qp->ibqp.send_cq), &wc, 0);
}

spin_lock_irqsave(&qp->s_lock, flags);
last = qp->s_last;
if (++last >= qp->s_size)
last = 0;
qp->s_last = last;
spin_unlock_irqrestore(&qp->s_lock, flags);
}

0 comments on commit 5b366a7

Please sign in to comment.