blk-mq: rename blk_mq_end_io to blk_mq_end_request
Now that we've changed the driver API on the submission side use the opportunity to fix up the name on the completion side to fit into the general scheme. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
committed by
Jens Axboe
parent
e2490073cd
commit
c8a446ad69
@@ -247,7 +247,7 @@ static void mtip_async_complete(struct mtip_port *port,
|
||||
if (unlikely(cmd->unaligned))
|
||||
up(&port->cmd_slot_unal);
|
||||
|
||||
blk_mq_end_io(rq, status ? -EIO : 0);
|
||||
blk_mq_end_request(rq, status ? -EIO : 0);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -3739,7 +3739,7 @@ static int mtip_submit_request(struct blk_mq_hw_ctx *hctx, struct request *rq)
|
||||
int err;
|
||||
|
||||
err = mtip_send_trim(dd, blk_rq_pos(rq), blk_rq_sectors(rq));
|
||||
blk_mq_end_io(rq, err);
|
||||
blk_mq_end_request(rq, err);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -177,7 +177,7 @@ static void end_cmd(struct nullb_cmd *cmd)
|
||||
{
|
||||
switch (queue_mode) {
|
||||
case NULL_Q_MQ:
|
||||
blk_mq_end_io(cmd->rq, 0);
|
||||
blk_mq_end_request(cmd->rq, 0);
|
||||
return;
|
||||
case NULL_Q_RQ:
|
||||
INIT_LIST_HEAD(&cmd->rq->queuelist);
|
||||
|
@@ -135,7 +135,7 @@ static inline void virtblk_request_done(struct request *req)
|
||||
req->errors = (error != 0);
|
||||
}
|
||||
|
||||
blk_mq_end_io(req, error);
|
||||
blk_mq_end_request(req, error);
|
||||
}
|
||||
|
||||
static void virtblk_done(struct virtqueue *vq)
|
||||
|
Reference in New Issue
Block a user