Skip to content

Commit d6b75ba

Browse files
lrq-maxmartinkpetersen
authored andcommitted
scsi: virtio_scsi: Remove duplicate check if queue is broken
virtqueue_enable_cb() will call virtqueue_poll() which will check if queue is broken at beginning, so remove the virtqueue_is_broken() call Signed-off-by: Li RongQing <lirongqing@baidu.com> Link: https://lore.kernel.org/r/20240116045836.12475-1-lirongqing@baidu.com Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 658365c commit d6b75ba

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/scsi/virtio_scsi.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ static void virtscsi_vq_done(struct virtio_scsi *vscsi,
182182
while ((buf = virtqueue_get_buf(vq, &len)) != NULL)
183183
fn(vscsi, buf);
184184

185-
if (unlikely(virtqueue_is_broken(vq)))
186-
break;
187185
} while (!virtqueue_enable_cb(vq));
188186
spin_unlock_irqrestore(&virtscsi_vq->vq_lock, flags);
189187
}

0 commit comments

Comments
 (0)