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>
This commit is contained in:
parent
db8ba1e8c3
commit
307f39b021
|
@ -337,8 +337,6 @@ static void xennet_alloc_rx_buffers(struct netfront_queue *queue)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
wmb(); /* barrier so backend seens requests */
|
|
||||||
|
|
||||||
RING_PUSH_REQUESTS_AND_CHECK_NOTIFY(&queue->rx, notify);
|
RING_PUSH_REQUESTS_AND_CHECK_NOTIFY(&queue->rx, notify);
|
||||||
if (notify)
|
if (notify)
|
||||||
notify_remote_via_irq(queue->rx_irq);
|
notify_remote_via_irq(queue->rx_irq);
|
||||||
|
|
Loading…
Reference in New Issue