From: Eilon Greenstein Date: Thu, 12 Feb 2009 08:37:25 +0000 (+0000) Subject: bnx2x: smp_mb and not just smp_rmb X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3e5b510eb8c9ea5f762e0a0a9ce59254d6671dce;p=linux-2.6-omap-h63xx.git bnx2x: smp_mb and not just smp_rmb Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller --- diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index 6bd92199db2..2e95799a0db 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 */