|
@@ -2184,7 +2184,8 @@ static int nvme_init_subsystem(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id)
|
|
|
* Verify that the subsystem actually supports multiple
|
|
|
* controllers, else bail out.
|
|
|
*/
|
|
|
- if (nvme_active_ctrls(found) && !(id->cmic & (1 << 1))) {
|
|
|
+ if (!ctrl->opts->discovery_nqn &&
|
|
|
+ nvme_active_ctrls(found) && !(id->cmic & (1 << 1))) {
|
|
|
dev_err(ctrl->device,
|
|
|
"ignoring ctrl due to duplicate subnqn (%s).\n",
|
|
|
found->subnqn);
|