Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15
nvme-cli.11415
0022-fabrics-write-keep-alive-timeout-to-fabric...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0022-fabrics-write-keep-alive-timeout-to-fabrics-device-o.patch of Package nvme-cli.11415
From: Johannes Thumshirn <jthumshirn@suse.de> Date: Thu, 9 Aug 2018 11:25:23 +0200 Subject: [PATCH] fabrics: write keep-alive-timeout to fabrics device on connect Git-commit: 9e77dd52622a3e3bf20c9d6d0367909da531f422 References: bsc#1090568 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@suse.de> Fixes: 7099227b07a8 ("fabrics: add option to supply keep-alive-timeout for connect-all") Signed-off-by: Keith Busch <keith.busch@intel.com> --- fabrics.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fabrics.c b/fabrics.c index e389821..d9e7e41 100644 --- a/fabrics.c +++ b/fabrics.c @@ -635,6 +635,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.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