diff options
| author | Stanislaw Gruszka <[email protected]> | 2010-03-09 06:55:01 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2010-03-15 15:47:00 -0700 |
| commit | 0efc22f3afa5d8f070a33fea06162d7d9d518e38 (patch) | |
| tree | a4697a795999df7bfe11e89038e53664927195f9 /include/linux/debugobjects.h | |
| parent | 2d99cf16f42b1979a2c498bb6d09498dbd689978 (diff) | |
bnx2x: remove not necessary compiler barrier
Access to fp->tx_bd_prod is protected by __netif_tx_lock, so we do not
need any barrier for that.
Update of fp->tx_bd_cons in bnx2x_tx_int() is not protected by lock, but
barrier() nor smb_mb() in bnx2x_tx_avail() not guarantee we will see
values that is written on other cpu. Ordering issues between
netif_tx_stop_queue(), netif_tx_queue_stopped(), fp->tx_bd_cons = bd_cons
and bnx2x_tx_avail() are already handled by smp_mb() in bnx2x_tx_int()
and bnx2x_start_xmit().
Signed-off-by: Stanislaw Gruszka <[email protected]>
Signed-off-by: Eilon Greenstein <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions