]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: ctrl_loss_tmo setting is invalid for 'loop'
authorHannes Reinecke <hare@suse.de>
Wed, 17 Feb 2021 16:42:43 +0000 (17:42 +0100)
committerKeith Busch <kbusch@kernel.org>
Wed, 17 Feb 2021 18:04:22 +0000 (11:04 -0700)
commitbdf4f3ba5bb5374ff8e84eca8ec4be2e7b65ec18
tree3e266f061fb8bb82b770a8e04363365f147a84f9
parent70472ef878a09d13e70e3457ce2b9a357f7ad864
fabrics: ctrl_loss_tmo setting is invalid for 'loop'

The 'ctrl_loss_tmo' setting is invalid for 'loop' devices, so move
the default to '-1' (for 'unset'), and only set the default timeout
if discovery is not done on a loop device and the user has not
specified another value.

Fixes: 68bc869 ("fabrics: fix passing ctrl_loss_tmo=0 by default")
Signed-off-by: Hannes Reinecke <hare@suse.de>
fabrics.c