diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2017-10-11 12:53:07 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-10-18 19:27:48 +0200 |
commit | 31b8446079757575e576b0516f0e4c0fcdfbd3dd (patch) | |
tree | 0008ab88bcfcf8eeba6e155c8edbbbffbd5a7cd6 /drivers/nvme/host/core.c | |
parent | 149e10f8ff71439014dff97987e90e87e2684a16 (diff) | |
download | talos-obmc-linux-31b8446079757575e576b0516f0e4c0fcdfbd3dd.tar.gz talos-obmc-linux-31b8446079757575e576b0516f0e4c0fcdfbd3dd.zip |
nvme: introduce nvme_reinit_tagset
Move blk_mq_reinit_tagset from blk-mq to nvme core
as the only user of it. Current transports that use
it (rdma, fc) simply implement .reinit_request op.
This patch does not change any functionality.
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/core.c')
-rw-r--r-- | drivers/nvme/host/core.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 573cc3b59bfa..c95155696741 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -2934,6 +2934,16 @@ void nvme_start_queues(struct nvme_ctrl *ctrl) } EXPORT_SYMBOL_GPL(nvme_start_queues); +int nvme_reinit_tagset(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set) +{ + if (!ctrl->ops->reinit_request) + return 0; + + return blk_mq_tagset_iter(set, set->driver_data, + ctrl->ops->reinit_request); +} +EXPORT_SYMBOL_GPL(nvme_reinit_tagset); + int __init nvme_core_init(void) { int result; |