Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62751
b: refs/heads/master
c: 0981582
h: refs/heads/master
i:
  62749: 2f78427
  62747: 01f05d1
  62743: 29371db
  62735: 66ecdbd
  62719: 4643896
v: v3
  • Loading branch information
Roland Dreier committed Jul 21, 2007
1 parent 71e14b3 commit b5dd03e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: c1f74958dbd19f6a837d887ed416688c063af529
refs/heads/master: 0981582dbfae86ba0306406f1af329bb702752d2
3 changes: 1 addition & 2 deletions trunk/drivers/net/mlx4/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,6 @@ void mlx4_cmd_event(struct mlx4_dev *dev, u16 token, u8 status, u64 out_param)
context->result = mlx4_status_to_errno(status);
context->out_param = out_param;

context->token += priv->cmd.token_mask + 1;

complete(&context->done);
}

Expand All @@ -264,6 +262,7 @@ static int mlx4_cmd_wait(struct mlx4_dev *dev, u64 in_param, u64 *out_param,
spin_lock(&cmd->context_lock);
BUG_ON(cmd->free_head < 0);
context = &cmd->context[cmd->free_head];
context->token += cmd->token_mask + 1;
cmd->free_head = context->next;
spin_unlock(&cmd->context_lock);

Expand Down

0 comments on commit b5dd03e

Please sign in to comment.