summaryrefslogtreecommitdiffstats
path: root/drivers/block/virtio_blk.c
diff options
context:
space:
mode:
authorChristoph Hellwig2017-04-20 16:03:09 +0200
committerJens Axboe2017-04-20 20:16:10 +0200
commit08e0029aa2a4acdd365613ce88a1184e5351a8a1 (patch)
tree4ccf1cbe87b02243a399fd46ccd51d8fd0d7423f /drivers/block/virtio_blk.c
parentxen-blkfront: don't use req->errors (diff)
downloadkernel-qcow2-linux-08e0029aa2a4acdd365613ce88a1184e5351a8a1.tar.gz
kernel-qcow2-linux-08e0029aa2a4acdd365613ce88a1184e5351a8a1.tar.xz
kernel-qcow2-linux-08e0029aa2a4acdd365613ce88a1184e5351a8a1.zip
blk-mq: remove the error argument to blk_mq_complete_request
Now that all drivers that call blk_mq_complete_requests have a ->complete callback we can remove the direct call to blk_mq_end_request, as well as the error argument to blk_mq_complete_request. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Bart Van Assche <Bart.VanAssche@sandisk.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/virtio_blk.c')
-rw-r--r--drivers/block/virtio_blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index dea2a58d6734..f94614257462 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -201,7 +201,7 @@ static void virtblk_done(struct virtqueue *vq)
while ((vbr = virtqueue_get_buf(vblk->vqs[qid].vq, &len)) != NULL) {
struct request *req = blk_mq_rq_from_pdu(vbr);
- blk_mq_complete_request(req, 0);
+ blk_mq_complete_request(req);
req_done = true;
}
if (unlikely(virtqueue_is_broken(vq)))