Though '--reconnect-delay' option is defined for connect, it
wasn't passed down to the kernel in connect_ctrl().
Signed-off-by: Martin George <marting@netapp.com>
Signed-off-by: Keith Busch <keith.busch@wdc.com>
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)