diff options
Diffstat (limited to 'drivers/vhost/net.c')
-rw-r--r-- | drivers/vhost/net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 5dc128a8da83..5dc34653274a 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c | |||
@@ -342,7 +342,7 @@ static int vhost_net_tx_get_vq_desc(struct vhost_net *net, | |||
342 | endtime = busy_clock() + vq->busyloop_timeout; | 342 | endtime = busy_clock() + vq->busyloop_timeout; |
343 | while (vhost_can_busy_poll(vq->dev, endtime) && | 343 | while (vhost_can_busy_poll(vq->dev, endtime) && |
344 | vhost_vq_avail_empty(vq->dev, vq)) | 344 | vhost_vq_avail_empty(vq->dev, vq)) |
345 | cpu_relax_lowlatency(); | 345 | cpu_relax(); |
346 | preempt_enable(); | 346 | preempt_enable(); |
347 | r = vhost_get_vq_desc(vq, vq->iov, ARRAY_SIZE(vq->iov), | 347 | r = vhost_get_vq_desc(vq, vq->iov, ARRAY_SIZE(vq->iov), |
348 | out_num, in_num, NULL, NULL); | 348 | 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) | |||
533 | while (vhost_can_busy_poll(&net->dev, endtime) && | 533 | while (vhost_can_busy_poll(&net->dev, endtime) && |
534 | !sk_has_rx_data(sk) && | 534 | !sk_has_rx_data(sk) && |
535 | vhost_vq_avail_empty(&net->dev, vq)) | 535 | vhost_vq_avail_empty(&net->dev, vq)) |
536 | cpu_relax_lowlatency(); | 536 | cpu_relax(); |
537 | 537 | ||
538 | preempt_enable(); | 538 | preempt_enable(); |
539 | 539 | ||