[PATCH RFC v7 08/14] fixup! vhost: use batched get_vq_desc version

From: Michael S. Tsirkin
Date: Wed Jun 10 2020 - 07:37:53 EST


---
drivers/vhost/vhost.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index 7a587b13095c..03e6bca02288 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -2205,10 +2205,6 @@ static int fetch_buf(struct vhost_virtqueue *vq)
last_avail_idx = vq->last_avail_idx;

if (unlikely(vq->avail_idx == vq->last_avail_idx)) {
- /* If we already have work to do, don't bother re-checking. */
- if (likely(vq->ndescs))
- return 1;
-
if (unlikely(vhost_get_avail_idx(vq, &avail_idx))) {
vq_err(vq, "Failed to access avail idx at %p\n",
&vq->avail->idx);
--
MST