diff options
author | Li RongQing <[email protected]> | 2024-01-13 12:09:47 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-01-15 09:33:41 -0700 |
commit | 04036d49c44b1772d4158640f3ccd938a12a3cb8 (patch) | |
tree | 486d242b64e8582c4610b936c403bcc60f82693c | |
parent | 5c7fa5c8ad79a1d7cc9f59636e2f99e8b5471248 (diff) |
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 <[email protected]>
Signed-off-by: Li RongQing <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
-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. */ |