diff options
author | Eilon Greenstein <eilong@broadcom.com> | 2009-02-12 09:37:25 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-16 08:31:46 +0100 |
commit | 3e5b510eb8c9ea5f762e0a0a9ce59254d6671dce (patch) | |
tree | 5fde7ff520a11cfcecafae3302ba4f92a230bb2e /drivers/net/bnx2x_main.c | |
parent | bnx2x: Increasing FW timeout (diff) | |
download | linux-3e5b510eb8c9ea5f762e0a0a9ce59254d6671dce.tar.xz linux-3e5b510eb8c9ea5f762e0a0a9ce59254d6671dce.zip |
bnx2x: smp_mb and not just smp_rmb
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_main.c')
-rw-r--r-- | drivers/net/bnx2x_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index 6bd92199db21..2e95799a0db2 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c @@ -7173,7 +7173,7 @@ static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode) struct bnx2x_fastpath *fp = &bp->fp[i]; cnt = 1000; - smp_rmb(); + smp_mb(); while (bnx2x_has_tx_work_unload(fp)) { bnx2x_tx_int(fp, 1000); @@ -7189,7 +7189,7 @@ static int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode) } cnt--; msleep(1); - smp_rmb(); + smp_mb(); } } /* Give HW time to discard old tx messages */ |