mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 13:03:25 +01:00
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:
parent
5c7fa5c8ad
commit
04036d49c4
1 changed files with 0 additions and 2 deletions
|
@ -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. */
|
||||||
|
|
Loading…
Reference in a new issue