提交 5e78085c 编写于 作者: T Tao Jiang 提交者: Yang Yingliang

nvme-fabrics: modify default value to reconnect forever

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA
Link: https://gitee.com/openeuler/kernel/issues/I1WGZE

-------------------------------------------------

Modify the default value of reconnect to -1, which means reconnect forever.
Signed-off-by: NTao Jiang <jiangtao62@huawei.com>
Reviewed-by: NChao Leng <lengchao@huawei.com>
Reviewed-by: NJike Cheng <chengjike.cheng@huawei.com>
Signed-off-by: NLijie <lijie34@huawei.com>
Acked-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 cee1536f
...@@ -617,7 +617,7 @@ static int nvmf_parse_options(struct nvmf_ctrl_options *opts, ...@@ -617,7 +617,7 @@ static int nvmf_parse_options(struct nvmf_ctrl_options *opts,
char *options, *o, *p; char *options, *o, *p;
int token, ret = 0; int token, ret = 0;
size_t nqnlen = 0; size_t nqnlen = 0;
int ctrl_loss_tmo = NVMF_DEF_CTRL_LOSS_TMO; int ctrl_loss_tmo = NVMF_DEF_RECONNECT_FOREVER;
uuid_t hostid; uuid_t hostid;
/* Set defaults */ /* Set defaults */
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#define NVMF_DEF_RECONNECT_DELAY 10 #define NVMF_DEF_RECONNECT_DELAY 10
/* default to 600 seconds of reconnect attempts before giving up */ /* default to 600 seconds of reconnect attempts before giving up */
#define NVMF_DEF_CTRL_LOSS_TMO 600 #define NVMF_DEF_CTRL_LOSS_TMO 600
#define NVMF_DEF_RECONNECT_FOREVER -1
/* /*
* Define a host as seen by the target. We allocate one at boot, but also * Define a host as seen by the target. We allocate one at boot, but also
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册