diff options
author | Jens Axboe <axboe@fb.com> | 2014-05-27 17:49:54 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-05-27 17:49:54 -0600 |
commit | 24d38621161d5c3d40129b06d0d87837ab1ccaff (patch) | |
tree | d9c5b2f8875aad393a5b152cc6933fd3c23a291f | |
parent | 330d80c414126541292e3b12101fa1bc5ebf223a (diff) | |
download | linux-block-blk-mq-nvme.tar.gz |
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.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c index aa97cf954741e..8918dad4d2d7d 100644 --- a/drivers/block/nvme-core.c +++ b/drivers/block/nvme-core.c @@ -1474,15 +1474,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, .alloc_hctx = nvme_alloc_hctx, .free_hctx = nvme_free_hctx, .init_hctx = nvme_init_admin_hctx, @@ -1493,7 +1487,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, .alloc_hctx = nvme_alloc_hctx, .free_hctx = nvme_free_hctx, .init_hctx = nvme_init_hctx, |