File 0007-fabrics-permit-kato-int-argument-for-discovery-contr.patch of Package nvme-cli.26915
From: Martin George <martinus.gpy@gmail.com>
Date: Thu, 18 Feb 2021 15:16:42 +0530
Subject: fabrics: permit kato int argument for discovery controllers
References: bsc#1182591
Git-commit: 0258f79369e13a11baa4e286d4c09ee8ddb5688e
Given discovery controllers can now accept integer arguments
for kato, permit the same in build_options().
Signed-off-by: Martin George <marting@netapp.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
---
fabrics.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
--- a/fabrics.c
+++ b/fabrics.c
@@ -915,9 +915,8 @@ static int build_options(char *argstr, i
(!discover &&
add_int_argument(&argstr, &max_len, "queue_size",
cfg.queue_size, false)) ||
- (!discover &&
- add_int_argument(&argstr, &max_len, "keep_alive_tmo",
- cfg.keep_alive_tmo, false)) ||
+ add_int_argument(&argstr, &max_len, "keep_alive_tmo",
+ cfg.keep_alive_tmo, false) ||
add_int_argument(&argstr, &max_len, "reconnect_delay",
cfg.reconnect_delay, false) ||
add_int_argument(&argstr, &max_len, "ctrl_loss_tmo",