Skip to contentSkip to conversation

fabrics: permit kato int argument for discovery controllers

PATCH In review Martin George 3 participants 3 messages Feb 18, 2021 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fabrics: permit kato int argument for discovery controllers

Given discovery controllers can now accept integer arguments for kato, permit the same in build_options().

---
 fabrics.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
fabrics.c +2 -3
index 1880a5d..9cfe26a 100644
@@ -896,9 +896,8 @@ static int build_options(char *argstr, int max_len, bool discover)
 	    (!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",
Signature · 7 lines
2.30.0


_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Martin George

Given discovery controllers can now accept integer arguments for kato, permit the same in build_options().

---
  fabrics.c | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)
fabrics.c +0 -0
index 1880a5d..9cfe26a 100644
@@ -896,9 +896,8 @@ static int build_options(char *argstr, int max_len, bool discover)
  	    (!discover &&

fabrics.c static int build_options(char *argstr, int max_len, bool discover) · line 903

Quoted 10 lines
fabrics.c +2 -3
  	      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",

Martin, you probably have to resend it via a pull request to the github repository.

Cheers,

Hannes

Signature · 9 lines
Dr. Hannes Reinecke                Kernel Storage Architect
[email protected]                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer

_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme
maintainer
#2 lore raw
Quoted 28 lines · Hannes Reinecke
Quoted 15 lines · Martin George

Given discovery controllers can now accept integer arguments for kato, permit the same in build_options().

---
  fabrics.c | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)
fabrics.c +0 -0
index 1880a5d..9cfe26a 100644
@@ -896,9 +896,8 @@ static int build_options(char *argstr, int max_len, bool discover)
  	    (!discover &&

fabrics.c static int build_options(char *argstr, int max_len, bool discover) · line 903

Quoted 10 lines
fabrics.c +2 -3
  	      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",
Quoted 2 lines

Martin, you probably have to resend it via a pull request to the github repository.

Not necessary, I am totally okay with applying these direct from the mailing list.

Thanks for the review, patch is already applied!

_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme