Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45751
b: refs/heads/master
c: ce29d72
h: refs/heads/master
i:
  45749: d33ad59
  45747: 863e2b2
  45743: 072457a
v: v3
  • Loading branch information
Hoang-Nam Nguyen authored and Roland Dreier committed Jan 23, 2007
1 parent c178cd0 commit 5f80cfa
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: a20f3a6d7e67a8aee571fb04634a631ba59f6e92
refs/heads/master: ce29d72cc737df3573854a4719f00385adf1c9a6
5 changes: 4 additions & 1 deletion trunk/drivers/infiniband/hw/ehca/ehca_cq.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,11 @@ int ehca_destroy_cq(struct ib_cq *cq)
unsigned long flags;

spin_lock_irqsave(&ehca_cq_idr_lock, flags);
while (my_cq->nr_callbacks)
while (my_cq->nr_callbacks) {
spin_unlock_irqrestore(&ehca_cq_idr_lock, flags);
yield();
spin_lock_irqsave(&ehca_cq_idr_lock, flags);
}

idr_remove(&ehca_cq_idr, my_cq->token);
spin_unlock_irqrestore(&ehca_cq_idr_lock, flags);
Expand Down

0 comments on commit 5f80cfa

Please sign in to comment.