Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56749
b: refs/heads/master
c: 9f81036
h: refs/heads/master
i:
  56747: 16fa954
v: v3
  • Loading branch information
Michael S. Tsirkin authored and Roland Dreier committed May 21, 2007
1 parent 6610ba1 commit 5b62247
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 518b1646f8a31904ca637b8df0c1e31c34a7a3c2
refs/heads/master: 9f81036c54ed1f860d2807c5a6aa4f2b30c21204
4 changes: 3 additions & 1 deletion trunk/drivers/infiniband/core/cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,9 @@ static int cm_alloc_id(struct cm_id_private *cm_id_priv)
do {
spin_lock_irqsave(&cm.lock, flags);
ret = idr_get_new_above(&cm.local_id_table, cm_id_priv,
next_id++, &id);
next_id, &id);
if (!ret)
next_id = ((unsigned) id + 1) & MAX_ID_MASK;
spin_unlock_irqrestore(&cm.lock, flags);
} while( (ret == -EAGAIN) && idr_pre_get(&cm.local_id_table, GFP_KERNEL) );

Expand Down

0 comments on commit 5b62247

Please sign in to comment.