From: Eilon Greenstein Date: Thu, 12 Feb 2009 08:37:25 +0000 (+0000) Subject: bnx2x: smp_mb and not just smp_rmb X-Git-Tag: v2.6.30-rc1~662^2~699 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3e5b510eb8c9ea5f762e0a0a9ce59254d6671dce;p=karo-tx-linux.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 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 */