Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32044
b: refs/heads/master
c: a46f948
h: refs/heads/master
v: v3
  • Loading branch information
Zach Brown authored and Linus Torvalds committed Jul 4, 2006
1 parent 0327045 commit 5535168
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: dd8041f16b117f63f40fb844d6cdebe8b03514d2
refs/heads/master: a46f9484f8926aacb2e79a0e1676de3a6a6fbae8
5 changes: 4 additions & 1 deletion trunk/drivers/infiniband/hw/mthca/mthca_qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ static void *get_send_wqe(struct mthca_qp *qp, int n)

static void mthca_wq_init(struct mthca_wq *wq)
{
spin_lock_init(&wq->lock);
/* mthca_alloc_qp_common() initializes the locks */
wq->next_ind = 0;
wq->last_comp = wq->max - 1;
wq->head = 0;
Expand Down Expand Up @@ -1114,6 +1114,9 @@ static int mthca_alloc_qp_common(struct mthca_dev *dev,
qp->sq_policy = send_policy;
mthca_wq_init(&qp->sq);
mthca_wq_init(&qp->rq);
/* these are initialized separately so lockdep can tell them apart */
spin_lock_init(&qp->sq.lock);
spin_lock_init(&qp->rq.lock);

ret = mthca_map_memfree(dev, qp);
if (ret)
Expand Down

0 comments on commit 5535168

Please sign in to comment.