[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181109065359.14900-1-jian.w.wen@oracle.com>
Date: Fri, 9 Nov 2018 14:53:59 +0800
From: Jacob Wen <jian.w.wen@...cle.com>
To: netdev@...r.kernel.org
Cc: jgross@...e.com, xen-devel@...ts.xenproject.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] 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@...cle.com>
---
drivers/net/xen-netfront.c | 2 --
1 file changed, 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);
--
2.17.1
Powered by blists - more mailing lists