From b2a0aba1176aa26f2b5ce0c0360c4be67dff63d8 Mon Sep 17 00:00:00 2001 From: Martin George Date: Mon, 11 May 2020 20:07:15 +0530 Subject: [PATCH] fabrics: write reconnect_delay to fabrics device on connect Though '--reconnect-delay' option is defined for connect, it wasn't passed down to the kernel in connect_ctrl(). Signed-off-by: Martin George Signed-off-by: Keith Busch --- fabrics.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fabrics.c b/fabrics.c index b3e717f..18034fa 100644 --- a/fabrics.c +++ b/fabrics.c @@ -995,6 +995,13 @@ retry: p+= len; } + if (cfg.reconnect_delay) { + len = sprintf(p, ",reconnect_delay=%d", cfg.reconnect_delay); + if (len < 0) + return -EINVAL; + p += len; + } + if (cfg.ctrl_loss_tmo) { len = sprintf(p, ",ctrl_loss_tmo=%d", cfg.ctrl_loss_tmo); if (len < 0) -- 2.50.1