summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-05-27 17:49:54 -0600
committerJens Axboe <axboe@fb.com>2014-05-29 09:54:27 -0600
commitf4ba62ceb14c636b49ddf052168206d34db0e408 (patch)
treeafcaa6b887fd0fe910fc0abc6a4fbee77a8b8fb6
parent04497c3394f3220111d4274704a1ff6bdd3ceae3 (diff)
nvme: remove IPI completionsblk-mq-nvme
We should have enough completion ports to place completions where they need to be, so lets remove the ->complete() part of mq_ops so that we avoid that indirection function call on completions. This could potentially be made conditional on the number of queues. Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--drivers/block/nvme-core.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c
index e4ca66d52c36..04825345357a 100644
--- a/drivers/block/nvme-core.c
+++ b/drivers/block/nvme-core.c
@@ -1465,15 +1465,9 @@ static int nvme_shutdown_ctrl(struct nvme_dev *dev)
return 0;
}
-static void nvme_req_complete(struct request *req)
-{
- blk_mq_end_io(req, req->errors);
-}
-
static struct blk_mq_ops nvme_mq_admin_ops = {
.queue_rq = nvme_queue_request,
.map_queue = blk_mq_map_queue,
- .complete = nvme_req_complete,
.init_hctx = nvme_init_admin_hctx,
.init_request = nvme_init_admin_request,
.timeout = nvme_timeout,
@@ -1482,7 +1476,6 @@ static struct blk_mq_ops nvme_mq_admin_ops = {
static struct blk_mq_ops nvme_mq_ops = {
.queue_rq = nvme_queue_request,
.map_queue = blk_mq_map_queue,
- .complete = nvme_req_complete,
.init_hctx = nvme_init_hctx,
.init_request = nvme_init_request,
.timeout = nvme_timeout,