]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: use smp_mb() to keep ordering of read write operations
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 9 Mar 2010 06:55:00 +0000 (06:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Mar 2010 22:47:00 +0000 (15:47 -0700)
commit16a3f652e9369884d05876bc16fede5b49d0fe11
treea67758700d34a0559f69783a54041a4e94405f03
parent65cbd8211bb16b6b2b2622b427887b456d3b021a
bnx2x: use smp_mb() to keep ordering of read write operations

Since we want to keep ordering of write to fp->bd_tx_cons and
netif_tx_queue_stopped(txq), what is read of txq->state, we have to use
general memory barrier.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x_main.c