virtio_blk: remove duplicate check if queue is broken in virtblk_done
authorLi RongQing <lirongqing@baidu.com>
Sat, 13 Jan 2024 04:09:47 +0000 (12:09 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Jan 2024 16:33:41 +0000 (09:33 -0700)
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>
drivers/block/virtio_blk.c

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