virtio_blk: remove duplicate check if queue is broken in virtblk_done

virtqueue_enable_cb() will call virtqueue_poll() which will check if
queue is broken at beginning, so remove the virtqueue_is_broken() call

Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Li RongQing 2024-01-13 12:09:47 +08:00 committed by Jens Axboe
parent 5c7fa5c8ad
commit 04036d49c4

View file

@ -367,8 +367,6 @@ static void virtblk_done(struct virtqueue *vq)
blk_mq_complete_request(req); blk_mq_complete_request(req);
req_done = true; req_done = true;
} }
if (unlikely(virtqueue_is_broken(vq)))
break;
} while (!virtqueue_enable_cb(vq)); } while (!virtqueue_enable_cb(vq));
/* In case queue is stopped waiting for more buffers. */ /* In case queue is stopped waiting for more buffers. */