diff options
author | Jacob Wen <jian.w.wen@oracle.com> | 2018-11-09 07:53:59 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-10 00:15:17 +0100 |
commit | 307f39b021995db67b2f39da7af006e2376fb452 (patch) | |
tree | 4207e3ea2ca6cc47012447ab52d1cfa3449ec4aa /drivers/net/xen-netfront.c | |
parent | Merge branch 'nfp-abm-move-code-and-improve-parameter-validation' (diff) | |
download | linux-307f39b021995db67b2f39da7af006e2376fb452.tar.xz linux-307f39b021995db67b2f39da7af006e2376fb452.zip |
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 '')
-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); |