|
@@ -342,7 +342,7 @@ static int vhost_net_tx_get_vq_desc(struct vhost_net *net,
|
|
endtime = busy_clock() + vq->busyloop_timeout;
|
|
endtime = busy_clock() + vq->busyloop_timeout;
|
|
while (vhost_can_busy_poll(vq->dev, endtime) &&
|
|
while (vhost_can_busy_poll(vq->dev, endtime) &&
|
|
vhost_vq_avail_empty(vq->dev, vq))
|
|
vhost_vq_avail_empty(vq->dev, vq))
|
|
- cpu_relax_lowlatency();
|
|
|
|
|
|
+ cpu_relax();
|
|
preempt_enable();
|
|
preempt_enable();
|
|
r = vhost_get_vq_desc(vq, vq->iov, ARRAY_SIZE(vq->iov),
|
|
r = vhost_get_vq_desc(vq, vq->iov, ARRAY_SIZE(vq->iov),
|
|
out_num, in_num, NULL, NULL);
|
|
out_num, in_num, NULL, NULL);
|
|
@@ -533,7 +533,7 @@ static int vhost_net_rx_peek_head_len(struct vhost_net *net, struct sock *sk)
|
|
while (vhost_can_busy_poll(&net->dev, endtime) &&
|
|
while (vhost_can_busy_poll(&net->dev, endtime) &&
|
|
!sk_has_rx_data(sk) &&
|
|
!sk_has_rx_data(sk) &&
|
|
vhost_vq_avail_empty(&net->dev, vq))
|
|
vhost_vq_avail_empty(&net->dev, vq))
|
|
- cpu_relax_lowlatency();
|
|
|
|
|
|
+ cpu_relax();
|
|
|
|
|
|
preempt_enable();
|
|
preempt_enable();
|
|
|
|
|