提交 f89e49e7 编写于 作者: A Anton Blanchard 提交者: David S. Miller

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: NAnton Blanchard <anton@samba.org>
Signed-off-by: NSantiago Leon <santil@linux.vnet.ibm.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8d86c61a
...@@ -1010,7 +1010,7 @@ static int ibmveth_poll(struct napi_struct *napi, int budget) ...@@ -1010,7 +1010,7 @@ static int ibmveth_poll(struct napi_struct *napi, int budget)
if (!ibmveth_rxq_pending_buffer(adapter)) if (!ibmveth_rxq_pending_buffer(adapter))
break; break;
rmb(); smp_rmb();
if (!ibmveth_rxq_buffer_valid(adapter)) { if (!ibmveth_rxq_buffer_valid(adapter)) {
wmb(); /* suggested by larson1 */ wmb(); /* suggested by larson1 */
adapter->rx_invalid_buffer++; adapter->rx_invalid_buffer++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册