]> www.infradead.org Git - users/hch/nvme-cli.git/commit
fabrics: fix passing ctrl_loss_tmo=0 by default
authorSagi Grimberg <sagi@grimberg.me>
Thu, 20 Aug 2020 03:13:20 +0000 (20:13 -0700)
committerKeith Busch <kbusch@kernel.org>
Thu, 20 Aug 2020 20:11:44 +0000 (13:11 -0700)
commit68bc86922296c817d385fd21d02862148b9bbb9d
tree80554de5079394c7883dcf6f375a6e4562d2c3f7
parent02ce35189669a0894bd1b16808a886f3867b1c86
fabrics: fix passing ctrl_loss_tmo=0 by default

cfg.ctrl_loss_tmo will be cleared to zero even if it wasn't set
at all, we must not pass ctrl_loss_tmo in the connection string.

This fixes a regression caused by allowing ctrl_loss_tmo to be
zero at all, by setting it to be a sane default (which currently
matches the kernel default).

Fixes: a6105a30a39a ("nvme-cli/fabrics: Add tos param to connect cmd")
Fixes: 4b607779af71 ("Allow 0 value of ctrl_loss_tmo.")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
fabrics.c