All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvmet: Set ctrl->kato to a default NVMET_DISC_KATO value
@ 2020-08-18  6:51 amit.engel
  2020-08-18 16:27 ` Christoph Hellwig
  0 siblings, 1 reply; 12+ messages in thread
From: amit.engel @ 2020-08-18  6:51 UTC (permalink / raw)
  To: hch, linux-nvme; +Cc: amit.engel

From: Amit Engel <amit.engel@dell.com>

We want to avoid starting the keep-alive timer with a zero timeout value

Signed-off-by: Amit Engel <amit.engel@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


_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-09-15  7:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-18  6:51 [PATCH] nvmet: Set ctrl->kato to a default NVMET_DISC_KATO value amit.engel
2020-08-18 16:27 ` Christoph Hellwig
2020-08-18 20:54   ` Sagi Grimberg
2020-08-18 20:58     ` Sagi Grimberg
2020-08-19  7:15       ` Engel, Amit
2020-08-19 14:29       ` Engel, Amit
2020-08-19 15:24         ` Sagi Grimberg
2020-08-19 16:04           ` Engel, Amit
2020-09-13 15:18             ` Engel, Amit
2020-09-14 23:53               ` Sagi Grimberg
2020-09-15  6:43                 ` Christoph Hellwig
2020-09-15  7:00                   ` Engel, Amit

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.