diff options
author | Li RongQing <lirongqing@baidu.com> | 2024-01-13 07:09:47 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-01-15 19:33:41 +0300 |
commit | 04036d49c44b1772d4158640f3ccd938a12a3cb8 (patch) | |
tree | 486d242b64e8582c4610b936c403bcc60f82693c /drivers/block | |
parent | 5c7fa5c8ad79a1d7cc9f59636e2f99e8b5471248 (diff) | |
download | linux-04036d49c44b1772d4158640f3ccd938a12a3cb8.tar.xz |
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>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/virtio_blk.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 7d7a19b2b9a8..24963f445cfe 100644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c @@ -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. */ |