From: Martin George Date: Mon, 11 May 2020 14:37:15 +0000 (+0530) Subject: fabrics: write reconnect_delay to fabrics device on connect X-Git-Tag: v1.12~20 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b2a0aba1176aa26f2b5ce0c0360c4be67dff63d8;p=users%2Fhch%2Fnvme-cli.git 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 --- 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)