From: Sagi Grimberg Date: Wed, 12 Feb 2020 20:01:58 +0000 (-0800) Subject: fabrics: set keep_alive_tmo also for discovery controllers X-Git-Tag: v1.11~37 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=39a6e3e7f22fd50f0bd4e7d507d536c173fcbf04;p=users%2Fhch%2Fnvme-cli.git fabrics: set keep_alive_tmo also for discovery controllers We may use persistent discovery connections on referrals so don't restrict it for discovery controllers. Signed-off-by: Sagi Grimberg Signed-off-by: Keith Busch --- diff --git a/fabrics.c b/fabrics.c index 98a4278..a112f76 100644 --- a/fabrics.c +++ b/fabrics.c @@ -947,7 +947,7 @@ retry: p += len; } - if (cfg.keep_alive_tmo && !discover) { + if (cfg.keep_alive_tmo) { len = sprintf(p, ",keep_alive_tmo=%d", cfg.keep_alive_tmo); if (len < 0) return -EINVAL;