|
@@ -100,6 +100,15 @@ static struct class *nvme_subsys_class;
|
|
|
static void nvme_ns_remove(struct nvme_ns *ns);
|
|
|
static int nvme_revalidate_disk(struct gendisk *disk);
|
|
|
|
|
|
+static void nvme_queue_scan(struct nvme_ctrl *ctrl)
|
|
|
+{
|
|
|
+ /*
|
|
|
+ * Only new queue scan work when admin and IO queues are both alive
|
|
|
+ */
|
|
|
+ if (ctrl->state == NVME_CTRL_LIVE)
|
|
|
+ queue_work(nvme_wq, &ctrl->scan_work);
|
|
|
+}
|
|
|
+
|
|
|
int nvme_reset_ctrl(struct nvme_ctrl *ctrl)
|
|
|
{
|
|
|
if (!nvme_change_ctrl_state(ctrl, NVME_CTRL_RESETTING))
|
|
@@ -3214,16 +3223,6 @@ static void nvme_scan_work(struct work_struct *work)
|
|
|
kfree(id);
|
|
|
}
|
|
|
|
|
|
-void nvme_queue_scan(struct nvme_ctrl *ctrl)
|
|
|
-{
|
|
|
- /*
|
|
|
- * Only new queue scan work when admin and IO queues are both alive
|
|
|
- */
|
|
|
- if (ctrl->state == NVME_CTRL_LIVE)
|
|
|
- queue_work(nvme_wq, &ctrl->scan_work);
|
|
|
-}
|
|
|
-EXPORT_SYMBOL_GPL(nvme_queue_scan);
|
|
|
-
|
|
|
/*
|
|
|
* This function iterates the namespace list unlocked to allow recovery from
|
|
|
* controller failure. It is up to the caller to ensure the namespace list is
|