diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2016-06-22 08:06:01 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-07-12 11:31:11 -0400 |
commit | 6a92967ccbfc20f94055c9a94bf951230cbd0452 (patch) | |
tree | 7620fe4a35acb7a2caf6969b4f5cf9c07c68b77b | |
parent | 2ac17c283a3f7b80e5b53f54ae9b048e6f0a2929 (diff) |
nvme-fabrics: Remove tl_retry_count
The timeout before error recovery logic kicks in is
dictated by the nvme keep-alive, so we don't really need
a transport layer retry count. transports can retry for
as much as they like.
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r-- | drivers/nvme/host/fabrics.c | 14 | ||||
-rw-r--r-- | drivers/nvme/host/fabrics.h | 3 |
2 files changed, 0 insertions, 17 deletions
diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c index b86b6379ef0c..0a5a4c4684bc 100644 --- a/drivers/nvme/host/fabrics.c +++ b/drivers/nvme/host/fabrics.c | |||
@@ -503,7 +503,6 @@ static const match_table_t opt_tokens = { | |||
503 | { NVMF_OPT_NQN, "nqn=%s" }, | 503 | { NVMF_OPT_NQN, "nqn=%s" }, |
504 | { NVMF_OPT_QUEUE_SIZE, "queue_size=%d" }, | 504 | { NVMF_OPT_QUEUE_SIZE, "queue_size=%d" }, |
505 | { NVMF_OPT_NR_IO_QUEUES, "nr_io_queues=%d" }, | 505 | { NVMF_OPT_NR_IO_QUEUES, "nr_io_queues=%d" }, |
506 | { NVMF_OPT_TL_RETRY_COUNT, "tl_retry_count=%d" }, | ||
507 | { NVMF_OPT_RECONNECT_DELAY, "reconnect_delay=%d" }, | 506 | { NVMF_OPT_RECONNECT_DELAY, "reconnect_delay=%d" }, |
508 | { NVMF_OPT_KATO, "keep_alive_tmo=%d" }, | 507 | { NVMF_OPT_KATO, "keep_alive_tmo=%d" }, |
509 | { NVMF_OPT_HOSTNQN, "hostnqn=%s" }, | 508 | { NVMF_OPT_HOSTNQN, "hostnqn=%s" }, |
@@ -521,7 +520,6 @@ static int nvmf_parse_options(struct nvmf_ctrl_options *opts, | |||
521 | /* Set defaults */ | 520 | /* Set defaults */ |
522 | opts->queue_size = NVMF_DEF_QUEUE_SIZE; | 521 | opts->queue_size = NVMF_DEF_QUEUE_SIZE; |
523 | opts->nr_io_queues = num_online_cpus(); | 522 | opts->nr_io_queues = num_online_cpus(); |
524 | opts->tl_retry_count = 2; | ||
525 | opts->reconnect_delay = NVMF_DEF_RECONNECT_DELAY; | 523 | opts->reconnect_delay = NVMF_DEF_RECONNECT_DELAY; |
526 | 524 | ||
527 | options = o = kstrdup(buf, GFP_KERNEL); | 525 | options = o = kstrdup(buf, GFP_KERNEL); |
@@ -605,18 +603,6 @@ static int nvmf_parse_options(struct nvmf_ctrl_options *opts, | |||
605 | opts->nr_io_queues = min_t(unsigned int, | 603 | opts->nr_io_queues = min_t(unsigned int, |
606 | num_online_cpus(), token); | 604 | num_online_cpus(), token); |
607 | break; | 605 | break; |
608 | case NVMF_OPT_TL_RETRY_COUNT: | ||
609 | if (match_int(args, &token)) { | ||
610 | ret = -EINVAL; | ||
611 | goto out; | ||
612 | } | ||
613 | if (token < 0) { | ||
614 | pr_err("Invalid tl_retry_count %d\n", token); | ||
615 | ret = -EINVAL; | ||
616 | goto out; | ||
617 | } | ||
618 | opts->tl_retry_count = token; | ||
619 | break; | ||
620 | case NVMF_OPT_KATO: | 606 | case NVMF_OPT_KATO: |
621 | if (match_int(args, &token)) { | 607 | if (match_int(args, &token)) { |
622 | ret = -EINVAL; | 608 | ret = -EINVAL; |
diff --git a/drivers/nvme/host/fabrics.h b/drivers/nvme/host/fabrics.h index b54067404963..89df52c8be97 100644 --- a/drivers/nvme/host/fabrics.h +++ b/drivers/nvme/host/fabrics.h | |||
@@ -69,8 +69,6 @@ enum { | |||
69 | * @trsvcid: network port used for host-controller communication. | 69 | * @trsvcid: network port used for host-controller communication. |
70 | * @queue_size: Number of IO queue elements. | 70 | * @queue_size: Number of IO queue elements. |
71 | * @nr_io_queues: Number of controller IO queues that will be established. | 71 | * @nr_io_queues: Number of controller IO queues that will be established. |
72 | * @tl_retry_count: Number of transport layer retries for a fabric queue before | ||
73 | * kicking upper layer(s) error recovery. | ||
74 | * @reconnect_delay: Time between two consecutive reconnect attempts. | 72 | * @reconnect_delay: Time between two consecutive reconnect attempts. |
75 | * @discovery_nqn: indicates if the subsysnqn is the well-known discovery NQN. | 73 | * @discovery_nqn: indicates if the subsysnqn is the well-known discovery NQN. |
76 | * @kato: Keep-alive timeout. | 74 | * @kato: Keep-alive timeout. |
@@ -84,7 +82,6 @@ struct nvmf_ctrl_options { | |||
84 | char *trsvcid; | 82 | char *trsvcid; |
85 | size_t queue_size; | 83 | size_t queue_size; |
86 | unsigned int nr_io_queues; | 84 | unsigned int nr_io_queues; |
87 | unsigned short tl_retry_count; | ||
88 | unsigned int reconnect_delay; | 85 | unsigned int reconnect_delay; |
89 | bool discovery_nqn; | 86 | bool discovery_nqn; |
90 | unsigned int kato; | 87 | unsigned int kato; |