* [PATCH nvme-cli v2 0/2] fabrics connect-all fixes
@ 2018-08-09 9:25 Johannes Thumshirn
2018-08-09 9:25 ` [PATCH nvme-cli v2 1/2] fabrics: write ctrl_loss_tmo to fabrics device on connect Johannes Thumshirn
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Johannes Thumshirn @ 2018-08-09 9:25 UTC (permalink / raw)
Two small fixes for fabrics commits of mine, which introduced options
but forgot to pass them down to the kernel.
Cahnges to v1:
* Add missing space between variable and '+' (Chaitanya)
Johannes Thumshirn (2):
fabrics: write ctrl_loss_tmo to fabrics device on connect
fabrics: write keep-alive-timeout to fabrics device on connect
fabrics.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
--
2.16.4
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH nvme-cli v2 1/2] fabrics: write ctrl_loss_tmo to fabrics device on connect
2018-08-09 9:25 [PATCH nvme-cli v2 0/2] fabrics connect-all fixes Johannes Thumshirn
@ 2018-08-09 9:25 ` Johannes Thumshirn
2018-08-09 9:25 ` [PATCH nvme-cli v2 2/2] fabrics: write keep-alive-timeout " Johannes Thumshirn
2018-08-09 14:59 ` [PATCH nvme-cli v2 0/2] fabrics connect-all fixes Keith Busch
2 siblings, 0 replies; 4+ messages in thread
From: Johannes Thumshirn @ 2018-08-09 9:25 UTC (permalink / raw)
Commit 388c9dbe86be ("fabrics: add ctrl-loss-tmo to connect-all")
introduced the '--ctrl-loss-tmo' option for the connect-all command,
but we forgor to pass down the option to the kernel in connect_ctrl().
Signed-off-by: Johannes Thumshirn <jthumshirn at suse.de>
Fixes: 388c9dbe86be ("fabrics: add ctrl-loss-tmo to connect-all")
fixup! fabrics: write ctrl_loss_tmo to fabrics device on connect
---
fabrics.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/fabrics.c b/fabrics.c
index 8437e323127a..241d8b86d8e6 100644
--- a/fabrics.c
+++ b/fabrics.c
@@ -621,6 +621,12 @@ static int connect_ctrl(struct nvmf_disc_rsp_page_entry *e)
p+= len;
}
+ if (cfg.ctrl_loss_tmo) {
+ len = sprintf(p, ",ctrl_loss_tmo=%s", cfg.ctrl_loss_tmo);
+ if (len < 0)
+ return -EINVAL;
+ p += len;
+ }
switch (e->trtype) {
case NVMF_TRTYPE_LOOP: /* loop */
--
2.16.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH nvme-cli v2 2/2] fabrics: write keep-alive-timeout to fabrics device on connect
2018-08-09 9:25 [PATCH nvme-cli v2 0/2] fabrics connect-all fixes Johannes Thumshirn
2018-08-09 9:25 ` [PATCH nvme-cli v2 1/2] fabrics: write ctrl_loss_tmo to fabrics device on connect Johannes Thumshirn
@ 2018-08-09 9:25 ` Johannes Thumshirn
2018-08-09 14:59 ` [PATCH nvme-cli v2 0/2] fabrics connect-all fixes Keith Busch
2 siblings, 0 replies; 4+ messages in thread
From: Johannes Thumshirn @ 2018-08-09 9:25 UTC (permalink / raw)
Commit 7099227b07a8 ("fabrics: add option to supply keep-alive-timeout
for connect-all") introduced a keep-alive-timeout option for
connect-all but forgot to write it down to the kernel's fabrics
device in connect_ctrl().
Pass down the keep-alove-timeouts if we're connecting to a non
discovery controller.
Signed-off-by: Johannes Thumshirn <jthumshirn at suse.de>
Fixes: 7099227b07a8 ("fabrics: add option to supply keep-alive-timeout for connect-all")
---
fabrics.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/fabrics.c b/fabrics.c
index 241d8b86d8e6..28e97c5aea3b 100644
--- a/fabrics.c
+++ b/fabrics.c
@@ -628,6 +628,13 @@ static int connect_ctrl(struct nvmf_disc_rsp_page_entry *e)
p += len;
}
+ if (cfg.keep_alive_tmo && !discover) {
+ len = sprintf(p, ",keep_alive_tmo=%s", cfg.keep_alive_tmo);
+ if (len < 0)
+ return -EINVAL;
+ p += len;
+ }
+
switch (e->trtype) {
case NVMF_TRTYPE_LOOP: /* loop */
len = sprintf(p, ",transport=loop");
--
2.16.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH nvme-cli v2 0/2] fabrics connect-all fixes
2018-08-09 9:25 [PATCH nvme-cli v2 0/2] fabrics connect-all fixes Johannes Thumshirn
2018-08-09 9:25 ` [PATCH nvme-cli v2 1/2] fabrics: write ctrl_loss_tmo to fabrics device on connect Johannes Thumshirn
2018-08-09 9:25 ` [PATCH nvme-cli v2 2/2] fabrics: write keep-alive-timeout " Johannes Thumshirn
@ 2018-08-09 14:59 ` Keith Busch
2 siblings, 0 replies; 4+ messages in thread
From: Keith Busch @ 2018-08-09 14:59 UTC (permalink / raw)
On Thu, Aug 09, 2018@11:25:21AM +0200, Johannes Thumshirn wrote:
> Two small fixes for fabrics commits of mine, which introduced options
> but forgot to pass them down to the kernel.
Thanks, series applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-08-09 14:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-09 9:25 [PATCH nvme-cli v2 0/2] fabrics connect-all fixes Johannes Thumshirn
2018-08-09 9:25 ` [PATCH nvme-cli v2 1/2] fabrics: write ctrl_loss_tmo to fabrics device on connect Johannes Thumshirn
2018-08-09 9:25 ` [PATCH nvme-cli v2 2/2] fabrics: write keep-alive-timeout " Johannes Thumshirn
2018-08-09 14:59 ` [PATCH nvme-cli v2 0/2] fabrics connect-all fixes Keith Busch
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.