]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: correctly handle ctrl_loss_tmo settings for loop
authorHannes Reinecke <hare@suse.de>
Thu, 25 Feb 2021 15:53:00 +0000 (16:53 +0100)
committerKeith Busch <kbusch@kernel.org>
Tue, 2 Mar 2021 19:31:55 +0000 (12:31 -0700)
commit79bb14710ac778a6037bc992ddea38af0954b8f7
tree2dc5d813176fbb85b00f95dcb300982bde72408d
parent9393b9d99fe3bdfce097efa2d6b5aa56480b54d1
fabrics: correctly handle ctrl_loss_tmo settings for loop

The previous fix had an issue with referrals, as it would take
the default values and apply them to all referral entries.
And if the default entries were for 'loop', the default ctrl_loss_tmo
setting would not be used, but rather '-1'.
So this patch reverts the previous patch and correctly blanks
out the ctrl_loss_tmo setting when constructing the connect string.

Fixes: bdf4f3b ("fabrics: ctrl_loss_tmo setting is invalid for 'loop'")
Signed-off-by: Hannes Reinecke <hare@suse.de>
fabrics.c