diff options
author | Christoph Hellwig <hch@lst.de> | 2018-06-14 08:25:55 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-06-14 11:01:27 -0400 |
commit | 14dfa400f95b7d7960343165507125a065db84c2 (patch) | |
tree | 0a5474c620f9a5b849ed021213d6260bcc8c48b9 | |
parent | 3e493c00cedb457c0731399a835f7ba1c6df172b (diff) |
nvme: remove nvme_reinit_tagset
Unused now that all transports stopped using it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | drivers/nvme/host/core.c | 10 | ||||
-rw-r--r-- | drivers/nvme/host/nvme.h | 2 |
2 files changed, 0 insertions, 12 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index dee8e71baf62..020a00f932a0 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c | |||
@@ -3627,16 +3627,6 @@ void nvme_start_queues(struct nvme_ctrl *ctrl) | |||
3627 | } | 3627 | } |
3628 | EXPORT_SYMBOL_GPL(nvme_start_queues); | 3628 | EXPORT_SYMBOL_GPL(nvme_start_queues); |
3629 | 3629 | ||
3630 | int nvme_reinit_tagset(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set) | ||
3631 | { | ||
3632 | if (!ctrl->ops->reinit_request) | ||
3633 | return 0; | ||
3634 | |||
3635 | return blk_mq_tagset_iter(set, set->driver_data, | ||
3636 | ctrl->ops->reinit_request); | ||
3637 | } | ||
3638 | EXPORT_SYMBOL_GPL(nvme_reinit_tagset); | ||
3639 | |||
3640 | int __init nvme_core_init(void) | 3630 | int __init nvme_core_init(void) |
3641 | { | 3631 | { |
3642 | int result = -ENOMEM; | 3632 | int result = -ENOMEM; |
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index 34df07d44f80..231807cbc849 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h | |||
@@ -321,7 +321,6 @@ struct nvme_ctrl_ops { | |||
321 | void (*submit_async_event)(struct nvme_ctrl *ctrl); | 321 | void (*submit_async_event)(struct nvme_ctrl *ctrl); |
322 | void (*delete_ctrl)(struct nvme_ctrl *ctrl); | 322 | void (*delete_ctrl)(struct nvme_ctrl *ctrl); |
323 | int (*get_address)(struct nvme_ctrl *ctrl, char *buf, int size); | 323 | int (*get_address)(struct nvme_ctrl *ctrl, char *buf, int size); |
324 | int (*reinit_request)(void *data, struct request *rq); | ||
325 | void (*stop_ctrl)(struct nvme_ctrl *ctrl); | 324 | void (*stop_ctrl)(struct nvme_ctrl *ctrl); |
326 | }; | 325 | }; |
327 | 326 | ||
@@ -416,7 +415,6 @@ void nvme_unfreeze(struct nvme_ctrl *ctrl); | |||
416 | void nvme_wait_freeze(struct nvme_ctrl *ctrl); | 415 | void nvme_wait_freeze(struct nvme_ctrl *ctrl); |
417 | void nvme_wait_freeze_timeout(struct nvme_ctrl *ctrl, long timeout); | 416 | void nvme_wait_freeze_timeout(struct nvme_ctrl *ctrl, long timeout); |
418 | void nvme_start_freeze(struct nvme_ctrl *ctrl); | 417 | void nvme_start_freeze(struct nvme_ctrl *ctrl); |
419 | int nvme_reinit_tagset(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set); | ||
420 | 418 | ||
421 | #define NVME_QID_ANY -1 | 419 | #define NVME_QID_ANY -1 |
422 | struct request *nvme_alloc_request(struct request_queue *q, | 420 | struct request *nvme_alloc_request(struct request_queue *q, |