diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index e958c0ace76f..652281833c2e 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -4328,6 +4328,7 @@ static bool nvme_handle_aen_notice(struct nvme_ctrl *ctrl, u32 result) switch (aer_notice_type) { case NVME_AER_NOTICE_NS_CHANGED: set_bit(NVME_AER_NOTICE_NS_CHANGED, &ctrl->events); + printk("%s: scan started\n", __func__); nvme_queue_scan(ctrl); break; case NVME_AER_NOTICE_FW_ACT_STARTING: @@ -4555,6 +4556,7 @@ void nvme_start_ctrl(struct nvme_ctrl *ctrl) nvme_change_uevent(ctrl, "NVME_EVENT=rediscover"); if (ctrl->queue_count > 1) { + printk("%s: scan started\n", __func__); nvme_queue_scan(ctrl); nvme_unquiesce_io_queues(ctrl); nvme_mpath_update(ctrl); diff --git a/drivers/nvme/host/ioctl.c b/drivers/nvme/host/ioctl.c index 3b473c0b9810..0ea4653ddb8e 100644 --- a/drivers/nvme/host/ioctl.c +++ b/drivers/nvme/host/ioctl.c @@ -978,6 +978,7 @@ long nvme_dev_ioctl(struct file *file, unsigned int cmd, case NVME_IOCTL_RESCAN: if (!capable(CAP_SYS_ADMIN)) return -EACCES; + printk("%s: rescan started\n", __func__); nvme_queue_scan(ctrl); return 0; default: diff --git a/drivers/nvme/host/sysfs.c b/drivers/nvme/host/sysfs.c index 09fcaa519e5b..87bfc3ed277f 100644 --- a/drivers/nvme/host/sysfs.c +++ b/drivers/nvme/host/sysfs.c @@ -30,6 +30,7 @@ static ssize_t nvme_sysfs_rescan(struct device *dev, { struct nvme_ctrl *ctrl = dev_get_drvdata(dev); + printk("%s: scan started\n", __func__); nvme_queue_scan(ctrl); return count; }