Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:GA
nvme-cli.7759
0021-fabrics-write-ctrl_loss_tmo-to-fabrics-dev...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0021-fabrics-write-ctrl_loss_tmo-to-fabrics-device-on-con.patch of Package nvme-cli.7759
From 109148f7add42b935f5187360be7b3b6634aa881 Mon Sep 17 00:00:00 2001 From: Johannes Thumshirn <jthumshirn@suse.de> Date: Thu, 9 Aug 2018 11:25:22 +0200 Subject: [PATCH] fabrics: write ctrl_loss_tmo to fabrics device on connect 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@suse.de> Fixes: 388c9dbe86be ("fabrics: add ctrl-loss-tmo to connect-all") fixup! fabrics: write ctrl_loss_tmo to fabrics device on connect Signed-off-by: Keith Busch <keith.busch@intel.com> --- fabrics.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fabrics.c b/fabrics.c index e48b834..e389821 100644 --- a/fabrics.c +++ b/fabrics.c @@ -628,6 +628,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.13.7
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor