diff options
author | Jacob Wen <jian.w.wen@oracle.com> | 2018-11-09 09:53:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-10 02:15:17 +0300 |
commit | 307f39b021995db67b2f39da7af006e2376fb452 (patch) | |
tree | 4207e3ea2ca6cc47012447ab52d1cfa3449ec4aa /drivers/net | |
parent | db8ba1e8c39a0e4a012949b5b8ac68386bd39b28 (diff) | |
download | linux-307f39b021995db67b2f39da7af006e2376fb452.tar.xz |
xen/netfront: remove unnecessary wmb
RING_PUSH_REQUESTS_AND_CHECK_NOTIFY is already able to make sure backend sees
requests before req_prod is updated.
Signed-off-by: Jacob Wen <jian.w.wen@oracle.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/xen-netfront.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index f17f602e6171..a8303afa15f1 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c @@ -337,8 +337,6 @@ static void xennet_alloc_rx_buffers(struct netfront_queue *queue) return; } - wmb(); /* barrier so backend seens requests */ - RING_PUSH_REQUESTS_AND_CHECK_NOTIFY(&queue->rx, notify); if (notify) notify_remote_via_irq(queue->rx_irq); |