Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233845
b: refs/heads/master
c: 6313528
h: refs/heads/master
i:
  233843: 7a02a97
v: v3
  • Loading branch information
Vladislav Zolotarov authored and David S. Miller committed Feb 28, 2011
1 parent a26fd50 commit ffc5641
Show file tree
Hide file tree
Showing 2 changed files with 3 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: ff80ee029b562c21ca40724dfe9a63e0e0e0ce3d
refs/heads/master: 63135281af8c7fb2b7c84b63f5f974238b7d843e
4 changes: 2 additions & 2 deletions trunk/drivers/net/bnx2x/bnx2x_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -1239,14 +1239,14 @@ void bnx2x_stats_handle(struct bnx2x *bp, enum bnx2x_stats_event event)
if (unlikely(bp->panic))
return;

bnx2x_stats_stm[bp->stats_state][event].action(bp);

/* Protect a state change flow */
spin_lock_bh(&bp->stats_lock);
state = bp->stats_state;
bp->stats_state = bnx2x_stats_stm[state][event].next_state;
spin_unlock_bh(&bp->stats_lock);

bnx2x_stats_stm[state][event].action(bp);

if ((event != STATS_EVENT_UPDATE) || netif_msg_timer(bp))
DP(BNX2X_MSG_STATS, "state %d -> event %d -> state %d\n",
state, event, bp->stats_state);
Expand Down

0 comments on commit ffc5641

Please sign in to comment.