[PATCH 3/4] nvme-fabrics: add tp8010 support

Sagi Grimberg sagi at grimberg.me
Sun Jan 30 05:18:13 PST 2022


> Yes, thgere is no bdev for discovery controllers. We may add a uevent
> for userspace to consume as soon as the transport reconnects or when
> a controller (re)starts.

Something like this should be sufficient:
--
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index dd18861f77c0..55e11ee19460 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -4396,6 +4396,7 @@ void nvme_start_ctrl(struct nvme_ctrl *ctrl)
                 nvme_queue_scan(ctrl);
                 nvme_start_queues(ctrl);
         }
+       kobject_uevent(&ctrl->device->kobj, KOBJ_ONLINE);
  }
  EXPORT_SYMBOL_GPL(nvme_start_ctrl);
--



More information about the Linux-nvme mailing list