[PATCH] nvmet: Set ctrl->kato to a default NVMET_DISC_KATO value
amit.engel at dell.com
amit.engel at dell.com
Tue Aug 18 02:51:14 EDT 2020
From: Amit Engel <amit.engel at dell.com>
We want to avoid starting the keep-alive timer with a zero timeout value
Signed-off-by: Amit Engel <amit.engel at dell.com>
---
drivers/nvme/target/core.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/nvme/target/core.c b/drivers/nvme/target/core.c
index b92f45f5cd5b..b7883435c5e4 100644
--- a/drivers/nvme/target/core.c
+++ b/drivers/nvme/target/core.c
@@ -1363,11 +1363,7 @@ u16 nvmet_alloc_ctrl(const char *subsysnqn, const char *hostnqn,
ctrl->ops = req->ops;
- /*
- * Discovery controllers may use some arbitrary high value
- * in order to cleanup stale discovery sessions
- */
- if ((ctrl->subsys->type == NVME_NQN_DISC) && !kato)
+ if (!kato)
kato = NVMET_DISC_KATO_MS;
/* keep-alive timeout in seconds */
--
2.16.2
More information about the Linux-nvme
mailing list