aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/fabrics.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2018-05-24 16:18:17 +0200
committerChristoph Hellwig <hch@lst.de>2018-05-25 16:50:12 +0200
commit181303d03525ea52d2d002fb8ee04e769aaa4ce4 (patch)
tree42e1e131ce659503db599ec908636006f6c16246 /drivers/nvme/host/fabrics.c
parentnvme-fabrics: centralize discovery controller defaults (diff)
downloadlinux-dev-181303d03525ea52d2d002fb8ee04e769aaa4ce4.tar.xz
linux-dev-181303d03525ea52d2d002fb8ee04e769aaa4ce4.zip
nvme-fabrics: allow duplicate connections to the discovery controller
The whole point of the discovery controller is that it can accept multiple connections. Additionally the cmic field is not even defined for the discovery controller identify page. Signed-off-by: Hannes Reinecke <hare@suse.com> Reviewed-by: James Smart <james.smart@broadcom.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '')
-rw-r--r--drivers/nvme/host/fabrics.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c
index 5ad6104577f0..8cb3d73e957d 100644
--- a/drivers/nvme/host/fabrics.c
+++ b/drivers/nvme/host/fabrics.c
@@ -850,6 +850,7 @@ static int nvmf_parse_options(struct nvmf_ctrl_options *opts,
if (opts->discovery_nqn) {
opts->kato = 0;
opts->nr_io_queues = 0;
+ opts->duplicate_connect = true;
}
if (ctrl_loss_tmo < 0)
opts->max_reconnects = -1;