Commit
388c9dbe86be ("fabrics: add ctrl-loss-tmo to connect-all")
introduced the '--ctrl-loss-tmo' option for the connect-all command,
but we forgor to pass down the option to the kernel in connect_ctrl().
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Fixes: 388c9dbe86be ("fabrics: add ctrl-loss-tmo to connect-all")
fixup! fabrics: write ctrl_loss_tmo to fabrics device on connect
Signed-off-by: Keith Busch <keith.busch@intel.com>
p+= len;
}
+ if (cfg.ctrl_loss_tmo) {
+ len = sprintf(p, ",ctrl_loss_tmo=%s", cfg.ctrl_loss_tmo);
+ if (len < 0)
+ return -EINVAL;
+ p += len;
+ }
switch (e->trtype) {
case NVMF_TRTYPE_LOOP: /* loop */