* remove nvme_reinit_tagset and blk_mq_tagset_iter
@ 2018-06-14 12:30 Christoph Hellwig
2018-06-14 12:30 ` [PATCH 1/2] nvme: remove nvme_reinit_tagset Christoph Hellwig
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Christoph Hellwig @ 2018-06-14 12:30 UTC (permalink / raw)
To: linux-nvme, linux-block, axboe
Now that nvme-fc moved off the reinit request concept both the core nvme
and blk-mq code for it becomes unused.
Jens, are you ok with queuing up the blk-mq side with the pending nvme
changes?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/2] nvme: remove nvme_reinit_tagset
2018-06-14 12:30 remove nvme_reinit_tagset and blk_mq_tagset_iter Christoph Hellwig
@ 2018-06-14 12:30 ` Christoph Hellwig
2018-06-14 12:30 ` [PATCH 2/2] blk-mq: remove blk_mq_tagset_iter Christoph Hellwig
2018-06-14 14:45 ` remove nvme_reinit_tagset and blk_mq_tagset_iter Jens Axboe
2 siblings, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2018-06-14 12:30 UTC (permalink / raw)
To: linux-nvme, linux-block, axboe
Unused now that all transports stopped using it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
drivers/nvme/host/core.c | 10 ----------
drivers/nvme/host/nvme.h | 2 --
2 files changed, 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)
}
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 = -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 {
void (*submit_async_event)(struct nvme_ctrl *ctrl);
void (*delete_ctrl)(struct nvme_ctrl *ctrl);
int (*get_address)(struct nvme_ctrl *ctrl, char *buf, int size);
- int (*reinit_request)(void *data, struct request *rq);
void (*stop_ctrl)(struct nvme_ctrl *ctrl);
};
@@ -416,7 +415,6 @@ void nvme_unfreeze(struct nvme_ctrl *ctrl);
void nvme_wait_freeze(struct nvme_ctrl *ctrl);
void nvme_wait_freeze_timeout(struct nvme_ctrl *ctrl, long timeout);
void nvme_start_freeze(struct nvme_ctrl *ctrl);
-int nvme_reinit_tagset(struct nvme_ctrl *ctrl, struct blk_mq_tag_set *set);
#define NVME_QID_ANY -1
struct request *nvme_alloc_request(struct request_queue *q,
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] blk-mq: remove blk_mq_tagset_iter
2018-06-14 12:30 remove nvme_reinit_tagset and blk_mq_tagset_iter Christoph Hellwig
2018-06-14 12:30 ` [PATCH 1/2] nvme: remove nvme_reinit_tagset Christoph Hellwig
@ 2018-06-14 12:30 ` Christoph Hellwig
2018-06-14 14:45 ` remove nvme_reinit_tagset and blk_mq_tagset_iter Jens Axboe
2 siblings, 0 replies; 6+ messages in thread
From: Christoph Hellwig @ 2018-06-14 12:30 UTC (permalink / raw)
To: linux-nvme, linux-block, axboe
Unused now that nvme stopped using it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
block/blk-mq-tag.c | 29 -----------------------------
include/linux/blk-mq.h | 2 --
2 files changed, 31 deletions(-)
diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c
index 70356a2a11ab..09b2ee6694fb 100644
--- a/block/blk-mq-tag.c
+++ b/block/blk-mq-tag.c
@@ -311,35 +311,6 @@ void blk_mq_tagset_busy_iter(struct blk_mq_tag_set *tagset,
}
EXPORT_SYMBOL(blk_mq_tagset_busy_iter);
-int blk_mq_tagset_iter(struct blk_mq_tag_set *set, void *data,
- int (fn)(void *, struct request *))
-{
- int i, j, ret = 0;
-
- if (WARN_ON_ONCE(!fn))
- goto out;
-
- for (i = 0; i < set->nr_hw_queues; i++) {
- struct blk_mq_tags *tags = set->tags[i];
-
- if (!tags)
- continue;
-
- for (j = 0; j < tags->nr_tags; j++) {
- if (!tags->static_rqs[j])
- continue;
-
- ret = fn(data, tags->static_rqs[j]);
- if (ret)
- goto out;
- }
- }
-
-out:
- return ret;
-}
-EXPORT_SYMBOL_GPL(blk_mq_tagset_iter);
-
void blk_mq_queue_tag_busy_iter(struct request_queue *q, busy_iter_fn *fn,
void *priv)
{
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h
index fb355173f3c7..e3147eb74222 100644
--- a/include/linux/blk-mq.h
+++ b/include/linux/blk-mq.h
@@ -281,8 +281,6 @@ void blk_freeze_queue_start(struct request_queue *q);
void blk_mq_freeze_queue_wait(struct request_queue *q);
int blk_mq_freeze_queue_wait_timeout(struct request_queue *q,
unsigned long timeout);
-int blk_mq_tagset_iter(struct blk_mq_tag_set *set, void *data,
- int (reinit_request)(void *, struct request *));
int blk_mq_map_queues(struct blk_mq_tag_set *set);
void blk_mq_update_nr_hw_queues(struct blk_mq_tag_set *set, int nr_hw_queues);
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: remove nvme_reinit_tagset and blk_mq_tagset_iter
2018-06-14 12:30 remove nvme_reinit_tagset and blk_mq_tagset_iter Christoph Hellwig
2018-06-14 12:30 ` [PATCH 1/2] nvme: remove nvme_reinit_tagset Christoph Hellwig
2018-06-14 12:30 ` [PATCH 2/2] blk-mq: remove blk_mq_tagset_iter Christoph Hellwig
@ 2018-06-14 14:45 ` Jens Axboe
2018-06-14 14:54 ` Christoph Hellwig
2 siblings, 1 reply; 6+ messages in thread
From: Jens Axboe @ 2018-06-14 14:45 UTC (permalink / raw)
To: Christoph Hellwig, linux-nvme, linux-block
On 6/14/18 6:30 AM, Christoph Hellwig wrote:
> Now that nvme-fc moved off the reinit request concept both the core nvme
> and blk-mq code for it becomes unused.
>
> Jens, are you ok with queuing up the blk-mq side with the pending nvme
> changes?
Are you asking if you can queue it up, presumable because the nvme-fc
change isn't upstream yet? That's fine with me, you can add my
reviewed-by to the patches.
--
Jens Axboe
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: remove nvme_reinit_tagset and blk_mq_tagset_iter
2018-06-14 14:54 ` Christoph Hellwig
@ 2018-06-14 14:48 ` Jens Axboe
0 siblings, 0 replies; 6+ messages in thread
From: Jens Axboe @ 2018-06-14 14:48 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-nvme, linux-block
On 6/14/18 8:54 AM, Christoph Hellwig wrote:
> On Thu, Jun 14, 2018 at 08:45:07AM -0600, Jens Axboe wrote:
>> On 6/14/18 6:30 AM, Christoph Hellwig wrote:
>>> Now that nvme-fc moved off the reinit request concept both the core nvme
>>> and blk-mq code for it becomes unused.
>>>
>>> Jens, are you ok with queuing up the blk-mq side with the pending nvme
>>> changes?
>>
>> Are you asking if you can queue it up, presumable because the nvme-fc
>> change isn't upstream yet? That's fine with me, you can add my
>> reviewed-by to the patches.
>
> Yes, that is the plan. The nvme changes are fixes I'm going to send
> you ASAP, and I think we can just send the dead code removal along.
OK, that sounds fine then. Please do send them asap, so I can ship
what I have for Linus before he cuts -rc1 on Sunday.
--
Jens Axboe
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: remove nvme_reinit_tagset and blk_mq_tagset_iter
2018-06-14 14:45 ` remove nvme_reinit_tagset and blk_mq_tagset_iter Jens Axboe
@ 2018-06-14 14:54 ` Christoph Hellwig
2018-06-14 14:48 ` Jens Axboe
0 siblings, 1 reply; 6+ messages in thread
From: Christoph Hellwig @ 2018-06-14 14:54 UTC (permalink / raw)
To: Jens Axboe; +Cc: Christoph Hellwig, linux-nvme, linux-block
On Thu, Jun 14, 2018 at 08:45:07AM -0600, Jens Axboe wrote:
> On 6/14/18 6:30 AM, Christoph Hellwig wrote:
> > Now that nvme-fc moved off the reinit request concept both the core nvme
> > and blk-mq code for it becomes unused.
> >
> > Jens, are you ok with queuing up the blk-mq side with the pending nvme
> > changes?
>
> Are you asking if you can queue it up, presumable because the nvme-fc
> change isn't upstream yet? That's fine with me, you can add my
> reviewed-by to the patches.
Yes, that is the plan. The nvme changes are fixes I'm going to send
you ASAP, and I think we can just send the dead code removal along.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-06-14 14:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-14 12:30 remove nvme_reinit_tagset and blk_mq_tagset_iter Christoph Hellwig
2018-06-14 12:30 ` [PATCH 1/2] nvme: remove nvme_reinit_tagset Christoph Hellwig
2018-06-14 12:30 ` [PATCH 2/2] blk-mq: remove blk_mq_tagset_iter Christoph Hellwig
2018-06-14 14:45 ` remove nvme_reinit_tagset and blk_mq_tagset_iter Jens Axboe
2018-06-14 14:54 ` Christoph Hellwig
2018-06-14 14:48 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox