* [PATCH 0/2] two nvme-tcp small fixes
@ 2019-01-01 7:58 Sagi Grimberg
2019-01-01 7:58 ` [PATCH 1/2] nvme-tcp: remove dead code Sagi Grimberg
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Sagi Grimberg @ 2019-01-01 7:58 UTC (permalink / raw)
Left overs from when I had the nvme-tcp on top of centralized
reset/error-recovery flows. In essence, these shouldn't exist
in a transport driver.
Sagi Grimberg (2):
nvme-tcp: remove dead code
nvme-tcp: don't ask if controller is fabrics
drivers/nvme/host/tcp.c | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
--
2.17.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] nvme-tcp: remove dead code
2019-01-01 7:58 [PATCH 0/2] two nvme-tcp small fixes Sagi Grimberg
@ 2019-01-01 7:58 ` Sagi Grimberg
2019-01-01 7:58 ` [PATCH 2/2] nvme-tcp: don't ask if controller is fabrics Sagi Grimberg
2019-01-04 18:21 ` [PATCH 0/2] two nvme-tcp small fixes Christoph Hellwig
2 siblings, 0 replies; 4+ messages in thread
From: Sagi Grimberg @ 2019-01-01 7:58 UTC (permalink / raw)
we should never touch the opal device from the transport
driver.
Signed-off-by: Sagi Grimberg <sagi at grimberg.me>
---
drivers/nvme/host/tcp.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c
index b4eed8bcbef5..a9f1469509af 100644
--- a/drivers/nvme/host/tcp.c
+++ b/drivers/nvme/host/tcp.c
@@ -1620,7 +1620,6 @@ static void nvme_tcp_destroy_admin_queue(struct nvme_ctrl *ctrl, bool remove)
{
nvme_tcp_stop_queue(ctrl, 0);
if (remove) {
- free_opal_dev(ctrl->opal_dev);
blk_cleanup_queue(ctrl->admin_q);
blk_mq_free_tag_set(ctrl->admin_tagset);
}
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] nvme-tcp: don't ask if controller is fabrics
2019-01-01 7:58 [PATCH 0/2] two nvme-tcp small fixes Sagi Grimberg
2019-01-01 7:58 ` [PATCH 1/2] nvme-tcp: remove dead code Sagi Grimberg
@ 2019-01-01 7:58 ` Sagi Grimberg
2019-01-04 18:21 ` [PATCH 0/2] two nvme-tcp small fixes Christoph Hellwig
2 siblings, 0 replies; 4+ messages in thread
From: Sagi Grimberg @ 2019-01-01 7:58 UTC (permalink / raw)
For sure we are a fabric driver.
Signed-off-by: Sagi Grimberg <sagi at grimberg.me>
---
drivers/nvme/host/tcp.c | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c
index a9f1469509af..a2b80e9cd060 100644
--- a/drivers/nvme/host/tcp.c
+++ b/drivers/nvme/host/tcp.c
@@ -1565,8 +1565,7 @@ static void nvme_tcp_destroy_io_queues(struct nvme_ctrl *ctrl, bool remove)
{
nvme_tcp_stop_io_queues(ctrl);
if (remove) {
- if (ctrl->ops->flags & NVME_F_FABRICS)
- blk_cleanup_queue(ctrl->connect_q);
+ blk_cleanup_queue(ctrl->connect_q);
blk_mq_free_tag_set(ctrl->tagset);
}
nvme_tcp_free_io_queues(ctrl);
@@ -1587,12 +1586,10 @@ static int nvme_tcp_configure_io_queues(struct nvme_ctrl *ctrl, bool new)
goto out_free_io_queues;
}
- if (ctrl->ops->flags & NVME_F_FABRICS) {
- ctrl->connect_q = blk_mq_init_queue(ctrl->tagset);
- if (IS_ERR(ctrl->connect_q)) {
- ret = PTR_ERR(ctrl->connect_q);
- goto out_free_tag_set;
- }
+ ctrl->connect_q = blk_mq_init_queue(ctrl->tagset);
+ if (IS_ERR(ctrl->connect_q)) {
+ ret = PTR_ERR(ctrl->connect_q);
+ goto out_free_tag_set;
}
} else {
blk_mq_update_nr_hw_queues(ctrl->tagset,
@@ -1606,7 +1603,7 @@ static int nvme_tcp_configure_io_queues(struct nvme_ctrl *ctrl, bool new)
return 0;
out_cleanup_connect_q:
- if (new && (ctrl->ops->flags & NVME_F_FABRICS))
+ if (new)
blk_cleanup_queue(ctrl->connect_q);
out_free_tag_set:
if (new)
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 0/2] two nvme-tcp small fixes
2019-01-01 7:58 [PATCH 0/2] two nvme-tcp small fixes Sagi Grimberg
2019-01-01 7:58 ` [PATCH 1/2] nvme-tcp: remove dead code Sagi Grimberg
2019-01-01 7:58 ` [PATCH 2/2] nvme-tcp: don't ask if controller is fabrics Sagi Grimberg
@ 2019-01-04 18:21 ` Christoph Hellwig
2 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2019-01-04 18:21 UTC (permalink / raw)
Thanks,
applied to nvme-4.21.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-01-04 18:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-01 7:58 [PATCH 0/2] two nvme-tcp small fixes Sagi Grimberg
2019-01-01 7:58 ` [PATCH 1/2] nvme-tcp: remove dead code Sagi Grimberg
2019-01-01 7:58 ` [PATCH 2/2] nvme-tcp: don't ask if controller is fabrics Sagi Grimberg
2019-01-04 18:21 ` [PATCH 0/2] two nvme-tcp small fixes Christoph Hellwig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.