From: Anton Blanchard Date: Tue, 7 Sep 2010 01:21:41 +0000 (-0700) Subject: ibmveth: Use lighter weight read memory barrier in ibmveth_poll X-Git-Tag: MMI-PSA29.97-13-9~21994^2~560 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f89e49e79f839dbe79364ec6cd7e2274ad11b120;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ibmveth: Use lighter weight read memory barrier in ibmveth_poll We want to order the read in ibmveth_rxq_pending_buffer and the read of ibmveth_rxq_buffer_valid which are both cacheable memory. smp_rmb() is good enough for this. Signed-off-by: Anton Blanchard Signed-off-by: Santiago Leon Signed-off-by: David S. Miller --- diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c index c236c8af3367..aedcb1802182 100644 --- a/drivers/net/ibmveth.c +++ b/drivers/net/ibmveth.c @@ -1010,7 +1010,7 @@ static int ibmveth_poll(struct napi_struct *napi, int budget) if (!ibmveth_rxq_pending_buffer(adapter)) break; - rmb(); + smp_rmb(); if (!ibmveth_rxq_buffer_valid(adapter)) { wmb(); /* suggested by larson1 */ adapter->rx_invalid_buffer++;